VirtualBox

Changeset 27632 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 23, 2010 2:18:15 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59192
Message:

FE/Qt4: 4674: Allow hostkey "None".

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobalSettings.cpp

    r26719 r27632  
    121121gPropertyMap[] =
    122122{
    123     { "GUI/Input/HostKey",                         "hostKey",                 "\\d*[1-9]\\d*", true },
     123    { "GUI/Input/HostKey",                         "hostKey",                 "0|\\d*[1-9]\\d*", true },
    124124    { "GUI/Input/AutoCapture",                     "autoCapture",             "true|false", true },
    125125    { "GUI/Customizations",                        "guiFeatures",             "\\S+", true },
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIHotKeyEdit.cpp

    r26714 r27632  
    114114 */
    115115
    116 const char *QIHotKeyEdit::kNoneSymbName = "<none>";
     116const char *QIHotKeyEdit::kNoneSymbName = "None";
    117117
    118118QIHotKeyEdit::QIHotKeyEdit (QWidget *aParent) :
     
    494494bool QIHotKeyEdit::isValidKey (int aKeyVal)
    495495{
     496    /* Empty value is correct: */
     497    if (aKeyVal == 0)
     498        return true;
    496499#if defined(Q_WS_WIN32)
    497500    return (
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/VBoxGLSettingsInput.cpp

    r26714 r27632  
    5151{
    5252    setTabOrder (aWidget, mHeHostKey);
    53     setTabOrder (mHeHostKey, mCbAutoGrab);
     53    setTabOrder (mHeHostKey, mTbResetHostKey);
     54    setTabOrder (mTbResetHostKey, mCbAutoGrab);
    5455}
    5556
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/VBoxGLSettingsInput.ui

    r25196 r27632  
    7474   </item>
    7575   <item row="0" column="3" >
     76    <widget class="QIToolButton" name="mTbResetHostKey" >
     77     <property name="focusPolicy">
     78      <enum>Qt::StrongFocus</enum>
     79     </property>
     80     <property name="toolTip">
     81      <string>Reset Host Key</string>
     82     </property>
     83     <property name="whatsThis" >
     84      <string>Resets the key used as a Host Key in the VM window.</string>
     85     </property>
     86     <property name="icon">
     87      <iconset resource="../VirtualBox1.qrc" >:/delete_16px.png</iconset>
     88     </property>
     89     <property name="autoRaise">
     90      <bool>true</bool>
     91     </property>
     92    </widget>
     93   </item>
     94   <item row="0" column="4" >
    7695    <spacer>
    7796     <property name="orientation" >
     
    86105    </spacer>
    87106   </item>
    88    <item row="1" column="2" colspan="2" >
     107   <item row="1" column="2" colspan="3" >
    89108    <widget class="QCheckBox" name="mCbAutoGrab" >
    90109     <property name="whatsThis" >
     
    117136   <header>QIHotKeyEdit.h</header>
    118137  </customwidget>
     138  <customwidget>
     139   <class>QIToolButton</class>
     140   <extends>QToolButton</extends>
     141   <header>QIToolButton.h</header>
     142  </customwidget>
    119143 </customwidgets>
    120144 <resources/>
    121  <connections/>
     145 <connections>
     146  <connection>
     147   <sender>mTbResetHostKey</sender>
     148   <signal>clicked(bool)</signal>
     149   <receiver>mHeHostKey</receiver>
     150   <slot>clear()</slot>
     151   <hints>
     152    <hint type="sourcelabel" >
     153     <x>111</x>
     154     <y>19</y>
     155    </hint>
     156    <hint type="destinationlabel" >
     157     <x>124</x>
     158     <y>61</y>
     159    </hint>
     160   </hints>
     161  </connection>
     162 </connections>
    122163</ui>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette