summaryrefslogtreecommitdiff
path: root/ui/qt5/intropage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/intropage.cc')
-rw-r--r--ui/qt5/intropage.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/ui/qt5/intropage.cc b/ui/qt5/intropage.cc
index ab21657..94e222d 100644
--- a/ui/qt5/intropage.cc
+++ b/ui/qt5/intropage.cc
@@ -11,6 +11,7 @@
*/
#include "intropage.hh"
+#include "advoptsdialog.hh"
#include <QLabel>
#ifdef HAS_INSTALL_ENV
@@ -36,6 +37,12 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) {
"<p>For more information about the installfile format and syntax, see the <a href=\"https://help.adelielinux.org/html/install/\">Adélie Linux Installation Handbook</a>.</p>"));
descLabel->setOpenExternalLinks(true);
descLabel->setTextFormat(Qt::RichText);
+
+ toolButton = new QPushButton(tr("&Advanced Options..."), this);
+ connect(toolButton, &QPushButton::clicked, [this](bool) {
+ AdvOptsDialog dialog(horizonWizard(), this);
+ dialog.exec();
+ });
#else /* HAS_INSTALL_ENV */
QMenu *toolMenu;
toolButton = new QPushButton(tr("Launch &Tool..."), this);
@@ -56,6 +63,10 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) {
p->start("netsurf-gtk3", QStringList());
horizonWizard()->tools.push_back(p);
});
+ connect(toolMenu->addAction("&Advanced Options"), &QAction::triggered, [this](void) {
+ AdvOptsDialog dialog(horizonWizard(), this);
+ dialog.exec();
+ });
toolButton->setMenu(toolMenu);
descLabel = new QLabel(
@@ -75,9 +86,7 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) {
layout = new QVBoxLayout;
layout->addWidget(descLabel);
-#ifdef HAS_INSTALL_ENV
layout->addStretch();
layout->addWidget(toolButton, 0, Qt::AlignCenter);
-#endif /* HAS_INSTALL_ENV */
setLayout(layout);
}