summaryrefslogtreecommitdiff
path: root/ui/qt5/pkgsimple.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/pkgsimple.cc')
-rw-r--r--ui/qt5/pkgsimple.cc11
1 files changed, 7 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;