diff --git a/src/mainwindow.cpp b/src/installerprompt.cpp similarity index 74% rename from src/mainwindow.cpp rename to src/installerprompt.cpp index 5acadd5..887e621 100644 --- a/src/mainwindow.cpp +++ b/src/installerprompt.cpp @@ -1,9 +1,9 @@ -#include "mainwindow.h" -#include "./ui_mainwindow.h" +#include "installerprompt.h" +#include "./ui_installerprompt.h" -MainWindow::MainWindow(QWidget *parent) +InstallerPrompt::InstallerPrompt(QWidget *parent) : QMainWindow(parent) - , ui(new Ui::MainWindow) + , ui(new Ui::InstallerPrompt) { ui->setupUi(this); @@ -19,7 +19,7 @@ MainWindow::MainWindow(QWidget *parent) ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);"); } -MainWindow::~MainWindow() +InstallerPrompt::~InstallerPrompt() { delete ui; } diff --git a/src/installerprompt.h b/src/installerprompt.h new file mode 100644 index 0000000..64d1c9b --- /dev/null +++ b/src/installerprompt.h @@ -0,0 +1,21 @@ +#ifndef INSTALLERPROMPT_H +#define INSTALLERPROMPT_H + +#include + +QT_BEGIN_NAMESPACE +namespace Ui { class InstallerPrompt; } +QT_END_NAMESPACE + +class InstallerPrompt : public QMainWindow +{ + Q_OBJECT + +public: + InstallerPrompt(QWidget *parent = nullptr); + ~InstallerPrompt(); + +private: + Ui::InstallerPrompt *ui; +}; +#endif diff --git a/src/mainwindow.ui b/src/installerprompt.ui similarity index 98% rename from src/mainwindow.ui rename to src/installerprompt.ui index dbc88a2..87068a0 100644 --- a/src/mainwindow.ui +++ b/src/installerprompt.ui @@ -1,7 +1,7 @@ - MainWindow - + InstallerPrompt + 0 diff --git a/src/main.cpp b/src/main.cpp index 3c5db33..3f8ac49 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,11 @@ -#include "mainwindow.h" +#include "installerprompt.h" #include int main(int argc, char *argv[]) { QApplication a(argc, argv); - MainWindow w; + InstallerPrompt w; w.setWindowState(Qt::WindowFullScreen); w.show(); return a.exec(); diff --git a/src/mainwindow.h b/src/mainwindow.h deleted file mode 100644 index 4643e32..0000000 --- a/src/mainwindow.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -QT_BEGIN_NAMESPACE -namespace Ui { class MainWindow; } -QT_END_NAMESPACE - -class MainWindow : public QMainWindow -{ - Q_OBJECT - -public: - MainWindow(QWidget *parent = nullptr); - ~MainWindow(); - -private: - Ui::MainWindow *ui; -}; -#endif // MAINWINDOW_H