Rename a lot from MainWindow to InstallerPrompt, getting this made into something we can actually publish.
This commit is contained in:
parent
4ed0cf3a4a
commit
6814333aba
@ -1,9 +1,9 @@
|
|||||||
#include "mainwindow.h"
|
#include "installerprompt.h"
|
||||||
#include "./ui_mainwindow.h"
|
#include "./ui_installerprompt.h"
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent)
|
InstallerPrompt::InstallerPrompt(QWidget *parent)
|
||||||
: QMainWindow(parent)
|
: QMainWindow(parent)
|
||||||
, ui(new Ui::MainWindow)
|
, ui(new Ui::InstallerPrompt)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
|
ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
InstallerPrompt::~InstallerPrompt()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
21
src/installerprompt.h
Normal file
21
src/installerprompt.h
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#ifndef INSTALLERPROMPT_H
|
||||||
|
#define INSTALLERPROMPT_H
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
|
||||||
|
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
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MainWindow</class>
|
<class>InstallerPrompt</class>
|
||||||
<widget class="QMainWindow" name="MainWindow">
|
<widget class="QMainWindow" name="InstallerPrompt">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
@ -1,11 +1,11 @@
|
|||||||
#include "mainwindow.h"
|
#include "installerprompt.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
MainWindow w;
|
InstallerPrompt w;
|
||||||
w.setWindowState(Qt::WindowFullScreen);
|
w.setWindowState(Qt::WindowFullScreen);
|
||||||
w.show();
|
w.show();
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
#ifndef MAINWINDOW_H
|
|
||||||
#define MAINWINDOW_H
|
|
||||||
|
|
||||||
#include <QMainWindow>
|
|
||||||
|
|
||||||
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
|
|
Loading…
x
Reference in New Issue
Block a user