summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 21:14:01 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-18 21:14:01 -0600
commit4746a3666281e60a5a03ef9c33bfed43b0996ae7 (patch)
treecc06dcca59502555bbb3c3abee440c58a3048bc2
parent36dbc2a2250dedce03824d2526f41fcefe8bbedb (diff)
downloadhorizon-4746a3666281e60a5a03ef9c33bfed43b0996ae7.tar.gz
horizon-4746a3666281e60a5a03ef9c33bfed43b0996ae7.tar.bz2
horizon-4746a3666281e60a5a03ef9c33bfed43b0996ae7.tar.xz
horizon-4746a3666281e60a5a03ef9c33bfed43b0996ae7.zip
Qt UI: More Wireless fun
-rw-r--r--ui/qt5/netsimplewifipage.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt5/netsimplewifipage.cc b/ui/qt5/netsimplewifipage.cc
index 071031f..3f61cb9 100644
--- a/ui/qt5/netsimplewifipage.cc
+++ b/ui/qt5/netsimplewifipage.cc
@@ -50,6 +50,7 @@ NetworkSimpleWirelessPage::NetworkSimpleWirelessPage(QWidget *parent)
connect(passphrase, &QLineEdit::textChanged,
this, &NetworkSimpleWirelessPage::completeChanged);
passphrase->setEchoMode(QLineEdit::Password);
+ passphrase->setMinimumWidth(255);
passphrase->hide();
layout = new QVBoxLayout;
@@ -195,7 +196,6 @@ void NetworkSimpleWirelessPage::doScan() {
void NetworkSimpleWirelessPage::initializePage() {
doScan();
- passphrase->setMinimumWidth(ssidListView->size().width());
}
bool NetworkSimpleWirelessPage::isComplete() const {
@@ -278,7 +278,7 @@ int NetworkSimpleWirelessPage::processScan(wpactrl_t *c, const char *, size_t) {
std::sort(netitems.begin(), netitems.end(),
[](QListWidgetItem *left, QListWidgetItem *right) {
- return left->data(Qt::UserRole + 1).toInt() <
+ return left->data(Qt::UserRole + 1).toInt() >
right->data(Qt::UserRole + 1).toInt();
});