From 171a79b51989473b3ab9fe21f883d5c8b046b4b5 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 29 Jun 2022 22:20:30 -0500 Subject: [PATCH] Quit the application when tryLubuntu is clicked. --- src/installerprompt.cpp | 7 +++++++ src/installerprompt.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/installerprompt.cpp b/src/installerprompt.cpp index 887e621..e48aa45 100644 --- a/src/installerprompt.cpp +++ b/src/installerprompt.cpp @@ -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() diff --git a/src/installerprompt.h b/src/installerprompt.h index 64d1c9b..c46fd6f 100644 --- a/src/installerprompt.h +++ b/src/installerprompt.h @@ -15,6 +15,9 @@ public: InstallerPrompt(QWidget *parent = nullptr); ~InstallerPrompt(); +public slots: + void tryLubuntu(); + private: Ui::InstallerPrompt *ui; };