Browse Source

Move main window to view package

basic-view
Ali Hatami Tajik 6 months ago
parent
commit
78a683e830
  1. 6
      gui/gui.pro
  2. 2
      gui/main.cpp
  3. 0
      gui/view/MainWindow.cpp
  4. 0
      gui/view/MainWindow.h
  5. 7
      gui/view/MainWindow.ui

6
gui/gui.pro

@ -17,15 +17,15 @@ DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \ SOURCES += \
main.cpp \ main.cpp \
viewmodel/MainWindow.cpp view/MainWindow.cpp
HEADERS += \ HEADERS += \
viewmodel/MainWindow.h view/MainWindow.h
FORMS += \ FORMS += \
view/MainWindow.ui view/MainWindow.ui
TARGET INCLUDEPATH += $$PWD/../model/include
RESOURCES += \ RESOURCES += \
resources.qrc resources.qrc

2
gui/main.cpp

@ -1,4 +1,4 @@
#include "viewmodel/MainWindow.h" #include "view/MainWindow.h"
#include <QApplication> #include <QApplication>

0
gui/viewmodel/MainWindow.cpp → gui/view/MainWindow.cpp

0
gui/viewmodel/MainWindow.h → gui/view/MainWindow.h

7
gui/view/MainWindow.ui

@ -22,6 +22,11 @@
<height>1080</height> <height>1080</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Sans Serif</family>
</font>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>MainWindow</string> <string>MainWindow</string>
</property> </property>
@ -32,7 +37,7 @@
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<widget class="QWidget" name=""> <widget class="QWidget" name="layoutWidget">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLineEdit" name="lineEdit"/> <widget class="QLineEdit" name="lineEdit"/>

Loading…
Cancel
Save