--- a/src/ui/configbox.ui Wed Jul 17 00:31:04 2013 +0300 +++ b/src/ui/configbox.ui Wed Jul 17 01:53:57 2013 +0300 @@ -33,7 +33,7 @@ <item> <layout class="QGridLayout" name="gridLayout"> <item row="1" column="2"> - <widget class="QPushButton" name="pushButton_6"> + <widget class="QPushButton" name="wad_add"> <property name="text"> <string>Add</string> </property> @@ -42,10 +42,10 @@ <item row="1" column="1"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> - <widget class="QLineEdit" name="lineEdit"/> + <widget class="QLineEdit" name="wad_pathEntry"/> </item> <item> - <widget class="QPushButton" name="pushButton"> + <widget class="QPushButton" name="wad_findPath"> <property name="text"> <string>...</string> </property> @@ -54,46 +54,32 @@ </layout> </item> <item row="2" column="1"> - <widget class="QListWidget" name="listWidget"/> + <widget class="QListWidget" name="wad_pathsList"> + <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> + </widget> </item> <item row="2" column="2"> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> - <widget class="QPushButton" name="pushButton_5"> - <property name="text"> - <string>Move Up</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_4"> - <property name="text"> - <string>Move Down</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> - <item> - <widget class="QPushButton" name="pushButton_2"> + <widget class="QPushButton" name="wad_del"> <property name="text"> <string>Delete</string> </property> </widget> </item> <item> - <widget class="QPushButton" name="pushButton_3"> + <widget class="QPushButton" name="wad_clear"> <property name="text"> <string>Clear</string> </property> @@ -151,8 +137,8 @@ <slot>accept()</slot> <hints> <hint type="sourcelabel"> - <x>248</x> - <y>254</y> + <x>254</x> + <y>313</y> </hint> <hint type="destinationlabel"> <x>157</x> @@ -167,8 +153,8 @@ <slot>reject()</slot> <hints> <hint type="sourcelabel"> - <x>316</x> - <y>260</y> + <x>322</x> + <y>313</y> </hint> <hint type="destinationlabel"> <x>286</x> @@ -176,5 +162,21 @@ </hint> </hints> </connection> + <connection> + <sender>wad_clear</sender> + <signal>clicked(bool)</signal> + <receiver>wad_pathsList</receiver> + <slot>clear()</slot> + <hints> + <hint type="sourcelabel"> + <x>441</x> + <y>217</y> + </hint> + <hint type="destinationlabel"> + <x>219</x> + <y>189</y> + </hint> + </hints> + </connection> </connections> </ui>