diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-23 01:10:29 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-23 01:10:29 -0600 |
commit | 5575b3475bdbad44f5e05f1b7755859a14f9a84c (patch) | |
tree | 19d54ad059102dcaa155e34ae71f56ef4e0cdef5 /ui/qt5/networkingpage.cc | |
parent | fb44b255c84c44dbf5be0565c6fa4a6bdc205c21 (diff) | |
download | horizon-5575b3475bdbad44f5e05f1b7755859a14f9a84c.tar.gz horizon-5575b3475bdbad44f5e05f1b7755859a14f9a84c.tar.bz2 horizon-5575b3475bdbad44f5e05f1b7755859a14f9a84c.tar.xz horizon-5575b3475bdbad44f5e05f1b7755859a14f9a84c.zip |
Qt UI: Fix issues identified by static analysis
Diffstat (limited to 'ui/qt5/networkingpage.cc')
-rw-r--r-- | ui/qt5/networkingpage.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/qt5/networkingpage.cc b/ui/qt5/networkingpage.cc index 5e72dba..589ad5f 100644 --- a/ui/qt5/networkingpage.cc +++ b/ui/qt5/networkingpage.cc @@ -22,14 +22,20 @@ NetworkingPage::NetworkingPage(QWidget *parent) : HorizonWizardPage(parent) { loadWatermark("network"); setTitle(tr("Networking Setup")); + + radioGroup = new QButtonGroup(this); + + simple = new QRadioButton(tr("&Automatic - my computer connects to the Internet directly\n" + "or via a modem/router.")); + advanced = new QRadioButton(tr("&Manual - my computer connects to an enterprise network,\n" + "or I use a static IP address, VPN, or 802.1X security.")); + skip = new QRadioButton(tr("&Skip - I don't want to connect to a network or the Internet.")); } void NetworkingPage::initializePage() { QLabel *descLabel; QVBoxLayout *layout; - radioGroup = new QButtonGroup(this); - #ifdef HAS_INSTALL_ENV if(horizonWizard()->interfaces.empty()) { descLabel = new QLabel(tr( @@ -52,15 +58,9 @@ void NetworkingPage::initializePage() { if(!horizonWizard()->interfaces.empty()) #endif /* HAS_INSTALL_ENV */ { - simple = new QRadioButton(tr("&Automatic - my computer connects to the Internet directly\n" - "or via a modem/router.")); - advanced = new QRadioButton(tr("&Manual - my computer connects to an enterprise network,\n" - "or I use a static IP address, VPN, or 802.1X security.")); radioGroup->addButton(simple); radioGroup->addButton(advanced); } - skip = new QRadioButton(tr("&Skip - I don't want to connect to a network or the Internet.")); - radioGroup->addButton(skip); QObject::connect(radioGroup, static_cast<void (QButtonGroup:: *)(QAbstractButton *)>(&QButtonGroup::buttonClicked), |