Rename a lot from MainWindow to InstallerPrompt, getting this made into something we can actually publish.

pull/1/head
Simon Quigley 3 years ago
parent 4ed0cf3a4a
commit 6814333aba

@ -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;
}

@ -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"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<class>InstallerPrompt</class>
<widget class="QMainWindow" name="InstallerPrompt">
<property name="geometry">
<rect>
<x>0</x>

@ -1,11 +1,11 @@
#include "mainwindow.h"
#include "installerprompt.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
InstallerPrompt w;
w.setWindowState(Qt::WindowFullScreen);
w.show();
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…
Cancel
Save