Mon, 07 Nov 2022 17:19:58 +0100
Corrected/acknowledged some bad import style and removed some obsolete code.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>UserAgentsDialog</class> <widget class="QDialog" name="UserAgentsDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>700</width> <height>400</height> </rect> </property> <property name="windowTitle"> <string>User Agent Settings</string> </property> <property name="sizeGripEnabled"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <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> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="spacing"> <number>0</number> </property> <item> <widget class="QLineEdit" name="searchEdit"> <property name="toolTip"> <string>Enter search term</string> </property> <property name="clearButtonEnabled"> <bool>true</bool> </property> </widget> </item> </layout> </item> </layout> </item> <item> <widget class="EricTableView" name="userAgentsTable"> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectRows</enum> </property> <property name="textElideMode"> <enum>Qt::ElideMiddle</enum> </property> <property name="showGrid"> <bool>false</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QPushButton" name="removeButton"> <property name="toolTip"> <string>Press to remove the selected entries</string> </property> <property name="text"> <string>&Remove</string> </property> <property name="autoDefault"> <bool>false</bool> </property> </widget> </item> <item> <widget class="QPushButton" name="removeAllButton"> <property name="toolTip"> <string>Press to remove all entries</string> </property> <property name="text"> <string>Remove &All</string> </property> <property name="autoDefault"> <bool>false</bool> </property> </widget> </item> <item> <spacer name="horizontalSpacer_2"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>208</width> <height>20</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Close</set> </property> </widget> </item> </layout> </widget> <customwidgets> <customwidget> <class>EricTableView</class> <extends>QTableView</extends> <header>eric7/EricWidgets/EricTableView.h</header> </customwidget> </customwidgets> <tabstops> <tabstop>searchEdit</tabstop> <tabstop>userAgentsTable</tabstop> <tabstop>removeButton</tabstop> <tabstop>removeAllButton</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>UserAgentsDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>237</x> <y>390</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>UserAgentsDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>325</x> <y>390</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui>