Skip to content

Commit

Permalink
refactor directories
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodCoder666 committed Dec 7, 2024
1 parent 2e049a3 commit 9b5d1b7
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 29 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)

set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
res.qrc
src/main.cpp
src/mainWindow/mainWindow.cpp
src/mainWindow/mainWindow.h
src/mainWindow/mainWindow.ui
res/res.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
Expand Down
10 changes: 0 additions & 10 deletions main.cpp

This file was deleted.

11 changes: 0 additions & 11 deletions mainwindow.cpp

This file was deleted.

File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
10 changes: 10 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "mainWindow/mainWindow.h"

#include <QApplication>

int main(int argc, char* argv[]) {
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
11 changes: 11 additions & 0 deletions src/mainWindow/mainWindow.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mainWindow.h"
#include "./ui_mainWindow.h"

MainWindow::MainWindow(QWidget* parent) :
QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
}

MainWindow::~MainWindow() {
delete ui;
}
File renamed without changes.
7 changes: 4 additions & 3 deletions mainwindow.ui → src/mainWindow/mainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<string>LocalGen 6.0.0</string>
</property>
<property name="windowIcon">
<iconset resource="res.qrc">
<iconset resource="../../res/res.qrc">
<normaloff>:/images/img/favicon.png</normaloff>:/images/img/favicon.png</iconset>
</property>
<property name="styleSheet">
Expand Down Expand Up @@ -58,7 +58,7 @@
<string/>
</property>
<property name="pixmap">
<pixmap resource="res.qrc">:/images/img/favicon.png</pixmap>
<pixmap resource="../../res/res.qrc">:/images/img/favicon.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
Expand Down Expand Up @@ -293,7 +293,8 @@
</widget>
</widget>
<resources>
<include location="res.qrc"/>
<include location="../../res/res.qrc"/>
<include location="../../res/res.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit 9b5d1b7

Please sign in to comment.