From 80e3da79f5f805b61169ef40400c14010312abfd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 3 Apr 2017 05:31:05 -0500 Subject: NetSimpleWifiPage: commit some in-progress code from March --- netsimplewifipage.cc | 12 ++++++++++-- netsimplewifipage.hh | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/netsimplewifipage.cc b/netsimplewifipage.cc index 0ca5ee6..4ce6eb4 100644 --- a/netsimplewifipage.cc +++ b/netsimplewifipage.cc @@ -4,6 +4,8 @@ #include #include +#include + NetworkSimpleWirelessPage::NetworkSimpleWirelessPage(QWidget *parent) : HorizonWizardPage(parent) { @@ -29,7 +31,7 @@ NetworkSimpleWirelessPage::NetworkSimpleWirelessPage(QWidget *parent) ssidName = new QLineEdit(this); ssidName->setPlaceholderText(tr("Network Name")); - //ssidName->hide(); + ssidName->hide(); securityTypeLabel = new QLabel(tr("Security type")); @@ -38,11 +40,12 @@ NetworkSimpleWirelessPage::NetworkSimpleWirelessPage(QWidget *parent) tr("WPA2 Enterprise"), tr("WPA Personal"), tr("WPA Enterprise"), tr("WEP")}); securityType->setEnabled(false); + securityType->hide(); passphrase = new QLineEdit(this); passphrase->setEchoMode(QLineEdit::Password); passphrase->setPlaceholderText(tr("Passphrase")); - //passphrase->hide(); + passphrase->hide(); securityLayout = new QHBoxLayout; securityLayout->addWidget(securityTypeLabel); @@ -61,3 +64,8 @@ NetworkSimpleWirelessPage::NetworkSimpleWirelessPage(QWidget *parent) layout->addWidget(passphrase); setLayout(layout); } + +void NetworkSimpleWirelessPage::initializePage() +{ + Horizon::WirelessController::wirelessController()->performScan(); +} diff --git a/netsimplewifipage.hh b/netsimplewifipage.hh index 23a6664..3ba3e6a 100644 --- a/netsimplewifipage.hh +++ b/netsimplewifipage.hh @@ -11,6 +11,8 @@ class NetworkSimpleWirelessPage : public HorizonWizardPage { public: NetworkSimpleWirelessPage(QWidget *parent = 0); + + void initializePage(); private: QComboBox *securityType; QLineEdit *ssidName, *passphrase; -- cgit v1.2.3-70-g09d2