Sun, 08 Sep 2013 21:57:23 +0300
clear the rows of the version editor properly when clearing versions; don't save the config when closing the version editor since then changes will apply even if user presses cancel in the main config box
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ConfigBox</class> <widget class="QDialog" name="ConfigBox"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>544</width> <height>308</height> </rect> </property> <property name="minimumSize"> <size> <width>320</width> <height>256</height> </size> </property> <property name="windowTitle"> <string>Dialog</string> </property> <property name="windowIcon"> <iconset resource="../../zandemo.qrc"> <normaloff>:/icons/zandemo.ico</normaloff>:/icons/zandemo.ico</iconset> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QTabWidget" name="tabWidget"> <property name="currentIndex"> <number>0</number> </property> <widget class="QWidget" name="tab"> <attribute name="title"> <string>WAD Paths</string> </attribute> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <layout class="QGridLayout" name="gridLayout"> <item row="2" column="1"> <widget class="QListWidget" name="wad_pathsList"> <property name="editTriggers"> <set>QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set> </property> <property name="dragEnabled"> <bool>true</bool> </property> <property name="dragDropMode"> <enum>QAbstractItemView::DragDrop</enum> </property> <property name="defaultDropAction"> <enum>Qt::MoveAction</enum> </property> <property name="selectionMode"> <enum>QAbstractItemView::ExtendedSelection</enum> </property> <property name="layoutMode"> <enum>QListView::SinglePass</enum> </property> <property name="uniformItemSizes"> <bool>true</bool> </property> </widget> </item> <item row="2" column="2"> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <widget class="QPushButton" name="wad_del"> <property name="text"> <string>Delete</string> </property> </widget> </item> <item> <widget class="QPushButton" name="wad_clear"> <property name="text"> <string>Clear</string> </property> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> </layout> </item> <item row="1" column="1"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLineEdit" name="wad_pathEntry"/> </item> <item> <widget class="QPushButton" name="wad_findPath"> <property name="text"> <string>...</string> </property> </widget> </item> </layout> </item> <item row="1" column="2"> <widget class="QPushButton" name="wad_add"> <property name="text"> <string>Add</string> </property> </widget> </item> </layout> </item> </layout> </widget> <widget class="QWidget" name="tab_2"> <attribute name="title"> <string>Release Binaries</string> </attribute> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> <widget class="QScrollArea" name="scrollArea"> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> <property name="widgetResizable"> <bool>true</bool> </property> <widget class="QWidget" name="scrollAreaWidgetContents"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>516</width> <height>225</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_5" stretch="1,0"> <item> <widget class="QWidget" name="zandronumVersions" native="true"/> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QPushButton" name="m_editVersions"> <property name="text"> <string>Edit Versions</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> </layout> </item> </layout> </widget> </widget> </item> </layout> </widget> <widget class="QWidget" name="tab_4"> <attribute name="title"> <string>Testing Binaries</string> </attribute> <layout class="QVBoxLayout" name="verticalLayout_7"> <item> <widget class="QScrollArea" name="scrollArea_2"> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> <property name="widgetResizable"> <bool>true</bool> </property> <widget class="QWidget" name="scrollAreaWidgetContents_2"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>516</width> <height>225</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_8" stretch="1,0"> <item> <widget class="QWidget" name="betaVersions" native="true"/> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QPushButton" name="m_editVersions_2"> <property name="text"> <string>Edit Versions</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer_2"> <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> </layout> </widget> </widget> </item> </layout> </widget> <widget class="QWidget" name="tab_3"> <attribute name="title"> <string>Misc</string> </attribute> <layout class="QVBoxLayout" name="verticalLayout_6"> <item> <widget class="QCheckBox" name="noDemoPrompt"> <property name="whatsThis"> <string>If this is not set, a prompt showing demo info is displayed first.</string> </property> <property name="text"> <string>Launch without prompt</string> </property> </widget> </item> <item> <spacer name="verticalSpacer_2"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> </layout> </widget> </widget> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <resources> <include location="../../zandemo.qrc"/> </resources> <connections> <connection> <sender>wad_clear</sender> <signal>clicked(bool)</signal> <receiver>wad_pathsList</receiver> <slot>clear()</slot> <hints> <hint type="sourcelabel"> <x>463</x> <y>129</y> </hint> <hint type="destinationlabel"> <x>219</x> <y>189</y> </hint> </hints> </connection> </connections> </ui>