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>HistoryDialog</class> <widget class="QDialog" name="HistoryDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>750</width> <height>450</height> </rect> </property> <property name="windowTitle"> <string>Manage History</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 for history entries</string> </property> <property name="clearButtonEnabled"> <bool>true</bool> </property> </widget> </item> </layout> </item> </layout> </item> <item> <widget class="EricTreeView" name="historyTree"> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="textElideMode"> <enum>Qt::ElideMiddle</enum> </property> <property name="uniformRowHeights"> <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="spacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</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>EricTreeView</class> <extends>QTreeView</extends> <header>eric7/EricWidgets/EricTreeView.h</header> </customwidget> </customwidgets> <tabstops> <tabstop>searchEdit</tabstop> <tabstop>historyTree</tabstop> <tabstop>removeButton</tabstop> <tabstop>removeAllButton</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>HistoryDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>252</x> <y>445</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>HistoryDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>320</x> <y>445</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui>