Sun, 30 Jun 2024 17:58:31 +0200
Moved some functions to the EricUtilities package for consistency and adapted the code base accordingly.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>WifiNetworksWindow</class> <widget class="QWidget" name="WifiNetworksWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>650</width> <height>600</height> </rect> </property> <property name="windowTitle"> <string>WiFi Networks</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QTreeWidget" name="networkList"> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionMode"> <enum>QAbstractItemView::NoSelection</enum> </property> <property name="rootIsDecorated"> <bool>false</bool> </property> <property name="itemsExpandable"> <bool>false</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> <column> <property name="text"> <string>Name</string> </property> </column> <column> <property name="text"> <string>Channel</string> </property> </column> <column> <property name="text"> <string>MAC-Address</string> </property> </column> <column> <property name="text"> <string>RSSI [dBm]</string> </property> </column> <column> <property name="text"> <string>Security</string> </property> </column> </widget> </item> <item> <widget class="QLabel" name="statusLabel"/> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="scanButton"> <property name="toolTip"> <string>Press to scan for available WiFi networks.</string> </property> <property name="text"> <string>Scan</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QLabel" name="label"> <property name="text"> <string>Scan Interval:</string> </property> </widget> </item> <item> <widget class="QSpinBox" name="intervalSpinBox"> <property name="toolTip"> <string>Enter the scan interval in seconds</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> <property name="suffix"> <string> s</string> </property> <property name="minimum"> <number>5</number> </property> <property name="maximum"> <number>120</number> </property> <property name="value"> <number>15</number> </property> </widget> </item> <item> <widget class="QCheckBox" name="periodicCheckBox"> <property name="toolTip"> <string>Select to perform a periodic WiFi network scan</string> </property> <property name="text"> <string>Periodic Scan</string> </property> </widget> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="standardButtons"> <set>QDialogButtonBox::Close</set> </property> </widget> </item> </layout> </widget> <tabstops> <tabstop>networkList</tabstop> <tabstop>scanButton</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>WifiNetworksWindow</receiver> <slot>close()</slot> <hints> <hint type="sourcelabel"> <x>278</x> <y>590</y> </hint> <hint type="destinationlabel"> <x>271</x> <y>517</y> </hint> </hints> </connection> </connections> </ui>