Quit the application when tryLubuntu is clicked.

This commit is contained in:
Simon Quigley 2022-06-29 22:20:30 -05:00
parent 6814333aba
commit 171a79b519
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,13 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
// Set the button colors
ui->tryLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);");
connect(ui->tryLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::tryLubuntu);
}
void InstallerPrompt::tryLubuntu()
{
QApplication::quit();
}
InstallerPrompt::~InstallerPrompt()

View File

@ -15,6 +15,9 @@ public:
InstallerPrompt(QWidget *parent = nullptr);
~InstallerPrompt();
public slots:
void tryLubuntu();
private:
Ui::InstallerPrompt *ui;
};