summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/pkgsimple.cc11
-rw-r--r--ui/qt5/pkgsimple.hh5
2 files changed, 12 insertions, 4 deletions
diff --git a/ui/qt5/pkgsimple.cc b/ui/qt5/pkgsimple.cc
index b5b56f5..9ae9495 100644
--- a/ui/qt5/pkgsimple.cc
+++ b/ui/qt5/pkgsimple.cc
@@ -15,7 +15,6 @@
#include <QButtonGroup>
#include <QGridLayout>
#include <QLabel>
-#include <QRadioButton>
#include <QVBoxLayout>
PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
@@ -27,9 +26,9 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
"You can install and uninstall more software at any time using the Package Manager. For more information, see the User Handbook in Online Help."));
descLabel->setWordWrap(true);
- QRadioButton *standardButton, *mobileButton, *compactButton, *textButton,
- *customButton;
- QLabel *standardLabel, *mobileLabel, *compactLabel, *textLabel, *customLabel;
+ QRadioButton *mobileButton, *compactButton, *textButton, *customButton;
+ QLabel *standardLabel, *mobileLabel, *compactLabel, *textLabel,
+ *customLabel;
standardButton = new QRadioButton(tr("&Standard"));
standardButton->setIcon(QIcon::fromTheme("preferences-desktop-theme"));
standardButton->setIconSize(QSize(32, 32));
@@ -95,6 +94,10 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
setLayout(mainLayout);
}
+void PkgSimplePage::initializePage() {
+ standardButton->click();
+}
+
int PkgSimplePage::nextId() const {
if(horizonWizard()->pkgtype == HorizonWizard::Custom)
return HorizonWizard::Page_PkgCustom;
diff --git a/ui/qt5/pkgsimple.hh b/ui/qt5/pkgsimple.hh
index 0a7f087..4a49356 100644
--- a/ui/qt5/pkgsimple.hh
+++ b/ui/qt5/pkgsimple.hh
@@ -15,10 +15,15 @@
#include "horizonwizardpage.hh"
+#include <QRadioButton>
+
class PkgSimplePage : public HorizonWizardPage {
public:
PkgSimplePage(QWidget *parent = nullptr);
+ void initializePage();
int nextId() const;
+private:
+ QRadioButton *standardButton;
};
#endif /* !PKGSIMPLE_HH */