summaryrefslogtreecommitdiff
path: root/ui/qt5/pkgsimple.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-19 23:55:42 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-19 23:55:42 -0600
commit70a7069d91ece19c4696fa4c474ae75698ab466e (patch)
treedd703e9f5ed1867e64b7f8985ff24d4a382bac42 /ui/qt5/pkgsimple.cc
parent5a2edfafa2465ee615eece5655601be96d7c0cde (diff)
downloadhorizon-70a7069d91ece19c4696fa4c474ae75698ab466e.tar.gz
horizon-70a7069d91ece19c4696fa4c474ae75698ab466e.tar.bz2
horizon-70a7069d91ece19c4696fa4c474ae75698ab466e.tar.xz
horizon-70a7069d91ece19c4696fa4c474ae75698ab466e.zip
Qt UI: Ensure 'Standard' is ticked by default
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;