diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-04-03 05:31:05 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-04-03 05:31:05 -0500 |
commit | 80e3da79f5f805b61169ef40400c14010312abfd (patch) | |
tree | 3814689689d82fff6d4533bff47afb455c44e30a | |
parent | eae5c18992184d0ef4efd8766ee95e26100a53f6 (diff) | |
download | horizon-qt5-80e3da79f5f805b61169ef40400c14010312abfd.tar.gz horizon-qt5-80e3da79f5f805b61169ef40400c14010312abfd.tar.bz2 horizon-qt5-80e3da79f5f805b61169ef40400c14010312abfd.tar.xz horizon-qt5-80e3da79f5f805b61169ef40400c14010312abfd.zip |
NetSimpleWifiPage: commit some in-progress code from March
-rw-r--r-- | netsimplewifipage.cc | 12 | ||||
-rw-r--r-- | 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 <QLabel> #include <QVBoxLayout> +#include <horizon/wirelesscontroller.hh> + 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; |