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 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'netsimplewifipage.cc') 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(); +} -- cgit v1.2.3-70-g09d2