diff options
Diffstat (limited to 'src/ui/forms')
| -rw-r--r-- | src/ui/forms/configdialog.ui | 15 | ||||
| -rw-r--r-- | src/ui/forms/shortcutdialog.ui | 120 |
2 files changed, 126 insertions, 9 deletions
diff --git a/src/ui/forms/configdialog.ui b/src/ui/forms/configdialog.ui index 30259a2c9..17885d82f 100644 --- a/src/ui/forms/configdialog.ui +++ b/src/ui/forms/configdialog.ui @@ -151,6 +151,10 @@ <property name="text"> <string>Shortcuts</string> </property> + <property name="icon"> + <iconset resource="../images/images.qrc"> + <normaloff>:/shortcuts.png</normaloff>:/shortcuts.png</iconset> + </property> </item> </widget> </item> @@ -1238,7 +1242,7 @@ </widget> <widget class="QWidget" name="shortcuts"> <layout class="QGridLayout" name="gridLayout_9"> - <item row="0" column="0" colspan="3"> + <item row="0" column="0" colspan="2"> <widget class="QTreeWidget" name="shortcutTreeWidget"> <property name="alternatingRowColors"> <bool>true</bool> @@ -1261,18 +1265,11 @@ <item row="1" column="0"> <widget class="QPushButton" name="changeShortcutButton"> <property name="text"> - <string>Change</string> + <string>Change shortcut...</string> </property> </widget> </item> <item row="1" column="1"> - <widget class="QPushButton" name="resetShortcutButton"> - <property name="text"> - <string>Reset</string> - </property> - </widget> - </item> - <item row="1" column="2"> <spacer name="horizontalSpacer_7"> <property name="orientation"> <enum>Qt::Horizontal</enum> diff --git a/src/ui/forms/shortcutdialog.ui b/src/ui/forms/shortcutdialog.ui new file mode 100644 index 000000000..db1cf466e --- /dev/null +++ b/src/ui/forms/shortcutdialog.ui @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ShortcutDialog</class> + <widget class="QDialog" name="HotkeyDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>310</width> + <height>89</height> + </rect> + </property> + <property name="windowTitle"> + <string>Change Shortcut</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <property name="leftMargin"> + <number>6</number> + </property> + <property name="rightMargin"> + <number>6</number> + </property> + <property name="bottomMargin"> + <number>6</number> + </property> + <item row="0" column="0" colspan="3"> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Press the key combination you want to assign</string> + </property> + </widget> + </item> + <item row="1" column="0" colspan="3"> + <widget class="QLineEdit" name="keyLineEdit"> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QPushButton" name="clearButton"> + <property name="text"> + <string>Clear</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>106</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="2"> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>HotkeyDialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>212</x> + <y>70</y> + </hint> + <hint type="destinationlabel"> + <x>192</x> + <y>269</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>HotkeyDialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>212</x> + <y>70</y> + </hint> + <hint type="destinationlabel"> + <x>246</x> + <y>214</y> + </hint> + </hints> + </connection> + <connection> + <sender>clearButton</sender> + <signal>clicked()</signal> + <receiver>keyLineEdit</receiver> + <slot>clear()</slot> + <hints> + <hint type="sourcelabel"> + <x>195</x> + <y>22</y> + </hint> + <hint type="destinationlabel"> + <x>113</x> + <y>25</y> + </hint> + </hints> + </connection> + </connections> +</ui> |
