diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-10-29 02:20:25 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-10-29 02:20:25 -0500 |
commit | 52661635b4f04c356f0092e5b59f1261dd04b34f (patch) | |
tree | f48c3bd27050bfdbab909c86715860429f6f1f95 /ui/qt5/intropage.cc | |
parent | 10318dee4e944cbf7ac59d805c3397a7df456a29 (diff) | |
download | horizon-52661635b4f04c356f0092e5b59f1261dd04b34f.tar.gz horizon-52661635b4f04c356f0092e5b59f1261dd04b34f.tar.bz2 horizon-52661635b4f04c356f0092e5b59f1261dd04b34f.tar.xz horizon-52661635b4f04c356f0092e5b59f1261dd04b34f.zip |
Qt UI: Add Advanced Options screen
Allows the user to select arch, repository, signingkey, and version.
Closes: #337
Diffstat (limited to 'ui/qt5/intropage.cc')
-rw-r--r-- | ui/qt5/intropage.cc | 13 |
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); } |