diff -r 60cac11fcfb2 -r aeff1f957f7d Preferences/ShortcutDialog.ui --- a/Preferences/ShortcutDialog.ui Sat Oct 22 13:23:34 2011 +0200 +++ b/Preferences/ShortcutDialog.ui Sat Oct 22 19:46:14 2011 +0200 @@ -1,146 +1,122 @@ -<ui version="4.0" > +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> <class>ShortcutDialog</class> - <widget class="QDialog" name="ShortcutDialog" > - <property name="geometry" > + <widget class="QDialog" name="ShortcutDialog"> + <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>539</width> - <height>125</height> + <height>134</height> </rect> </property> - <property name="windowTitle" > + <property name="windowTitle"> <string>Edit Shortcut</string> </property> - <property name="whatsThis" > + <property name="whatsThis"> <string>Press your shortcut keys and select OK</string> </property> - <layout class="QVBoxLayout" > + <layout class="QVBoxLayout"> <item> - <widget class="QGroupBox" name="shortcutsGroup" > - <property name="title" > + <widget class="QGroupBox" name="shortcutsGroup"> + <property name="title"> <string/> </property> - <layout class="QGridLayout" > - <item row="1" column="0" > - <widget class="QRadioButton" name="alternateButton" > - <property name="focusPolicy" > + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QRadioButton" name="primaryButton"> + <property name="focusPolicy"> <enum>Qt::NoFocus</enum> </property> - <property name="toolTip" > - <string>Select to change the alternative keyboard shortcut</string> + <property name="toolTip"> + <string>Select to change the primary keyboard shortcut</string> </property> - <property name="text" > - <string>Alternative Shortcut:</string> + <property name="text"> + <string>Primary Shortcut:</string> + </property> + <property name="checked"> + <bool>true</bool> </property> </widget> </item> - <item row="0" column="1" > - <widget class="QPushButton" name="primaryClearButton" > - <property name="focusPolicy" > + <item row="0" column="1"> + <widget class="QPushButton" name="primaryClearButton"> + <property name="focusPolicy"> <enum>Qt::NoFocus</enum> </property> - <property name="toolTip" > + <property name="toolTip"> <string>Press to clear the key sequence buffer.</string> </property> - <property name="text" > + <property name="text"> <string>Clear</string> </property> </widget> </item> - <item row="1" column="2" > - <widget class="QLabel" name="alternateKeyLabel" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip" > - <string/> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Sunken</enum> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="0" column="2" > - <widget class="QLabel" name="keyLabel" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip" > - <string/> - </property> - <property name="frameShape" > - <enum>QFrame::StyledPanel</enum> - </property> - <property name="frameShadow" > - <enum>QFrame::Sunken</enum> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="0" column="0" > - <widget class="QRadioButton" name="primaryButton" > - <property name="focusPolicy" > - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip" > - <string>Select to change the primary keyboard shortcut</string> - </property> - <property name="text" > - <string>Primary Shortcut:</string> - </property> - <property name="checked" > + <item row="0" column="2"> + <widget class="QLineEdit" name="keyEdit"> + <property name="readOnly"> <bool>true</bool> </property> </widget> </item> - <item row="1" column="1" > - <widget class="QPushButton" name="alternateClearButton" > - <property name="enabled" > + <item row="1" column="0"> + <widget class="QRadioButton" name="alternateButton"> + <property name="focusPolicy"> + <enum>Qt::NoFocus</enum> + </property> + <property name="toolTip"> + <string>Select to change the alternative keyboard shortcut</string> + </property> + <property name="text"> + <string>Alternative Shortcut:</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="alternateClearButton"> + <property name="enabled"> <bool>false</bool> </property> - <property name="focusPolicy" > + <property name="focusPolicy"> <enum>Qt::NoFocus</enum> </property> - <property name="toolTip" > + <property name="toolTip"> <string>Press to clear the key sequence buffer.</string> </property> - <property name="text" > + <property name="text"> <string>Clear</string> </property> </widget> </item> + <item row="1" column="2"> + <widget class="QLineEdit" name="alternateKeyEdit"> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> </layout> </widget> </item> <item> - <widget class="QDialogButtonBox" name="buttonBox" > - <property name="orientation" > + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> <enum>Qt::Horizontal</enum> </property> - <property name="standardButtons" > + <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> - <layoutdefault spacing="6" margin="6" /> + <layoutdefault spacing="6" margin="6"/> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <tabstops> + <tabstop>keyEdit</tabstop> + <tabstop>alternateKeyEdit</tabstop> + <tabstop>buttonBox</tabstop> + </tabstops> <resources/> <connections> <connection> @@ -149,11 +125,11 @@ <receiver>primaryClearButton</receiver> <slot>setEnabled(bool)</slot> <hints> - <hint type="sourcelabel" > + <hint type="sourcelabel"> <x>80</x> <y>23</y> </hint> - <hint type="destinationlabel" > + <hint type="destinationlabel"> <x>178</x> <y>24</y> </hint> @@ -165,11 +141,11 @@ <receiver>alternateClearButton</receiver> <slot>setEnabled(bool)</slot> <hints> - <hint type="sourcelabel" > + <hint type="sourcelabel"> <x>98</x> <y>56</y> </hint> - <hint type="destinationlabel" > + <hint type="destinationlabel"> <x>247</x> <y>66</y> </hint> @@ -181,11 +157,11 @@ <receiver>ShortcutDialog</receiver> <slot>reject()</slot> <hints> - <hint type="sourcelabel" > + <hint type="sourcelabel"> <x>92</x> <y>96</y> </hint> - <hint type="destinationlabel" > + <hint type="destinationlabel"> <x>100</x> <y>117</y> </hint>