VirtualBox

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


Ignore:
Timestamp:
Oct 9, 2007 11:07:47 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25121
Message:

FE/Qt: To avoid ambiguity, don not use QButton::setAccel() (and remove <property name="accel" from .ui) for buttons that already contain the implicit accel definition in the form of "&<letter>" in the button text string; use VBoxGlobal::setTextLabel() for QToolButton's with icons to get the same implicit accel asignment effect.

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

Legend:

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

    r5160 r5194  
    11971197            vmStartAction->setMenuText (tr ("S&how"));
    11981198            vmStartAction->setText (tr ("Show"));
    1199             vmStartAction->setAccel (QString::null);
    12001199            vmStartAction->setStatusTip (
    12011200                tr ("Switch to the window of the selected virtual machine"));
     
    12071206            vmStartAction->setMenuText (tr ("S&tart"));
    12081207            vmStartAction->setText (tr ("Start"));
    1209             vmStartAction->setAccel (QString::null);
    12101208            vmStartAction->setStatusTip (
    12111209                tr ("Start the selected virtual machine"));
     
    12731271        vmStartAction->setMenuText (tr ("S&tart"));
    12741272        vmStartAction->setText (tr ("Start"));
    1275         vmStartAction->setAccel (QString::null);
    12761273        vmStartAction->setStatusTip (
    12771274            tr ("Start the selected virtual machine"));
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxDiskImageManagerDlg.ui

    r4947 r5194  
    362362                            <property name="text">
    363363                                <string>&amp;OK</string>
    364                             </property>
    365                             <property name="accel">
    366                                 <string>Alt+O</string>
    367364                            </property>
    368365                            <property name="autoDefault">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui

    r4947 r5194  
    477477                                    <string>Enable &amp;VT-x/AMD-V</string>
    478478                                </property>
    479                                 <property name="accel">
    480                                     <string>Alt+V</string>
    481                                 </property>
    482479                                <property name="whatsThis" stdset="0">
    483480                                    <string>Defines whether virtual machines should try to make use of the host CPU's hardware virtualization extensions such as Intel VT-x and AMD-V by default or not.</string>
     
    581578                                <property name="text">
    582579                                    <string>&amp;Auto capture keyboard</string>
    583                                 </property>
    584                                 <property name="accel">
    585                                     <string>Alt+A</string>
    586580                                </property>
    587581                                <property name="whatsThis" stdset="0">
     
    11361130                    <property name="text">
    11371131                        <string>&amp;OK</string>
    1138                     </property>
    1139                     <property name="accel">
    1140                         <string>Alt+O</string>
    11411132                    </property>
    11421133                    <property name="autoDefault">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewHDWzd.ui

    r4071 r5194  
    232232                                    <string>&amp;Dynamically expanding image</string>
    233233                                </property>
    234                                 <property name="accel">
    235                                     <string>Alt+D</string>
    236                                 </property>
    237234                                <property name="checked">
    238235                                    <bool>true</bool>
     
    245242                                <property name="text">
    246243                                    <string>&amp;Fixed-size image</string>
    247                                 </property>
    248                                 <property name="accel">
    249                                     <string>Alt+F</string>
    250244                                </property>
    251245                            </widget>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotDetailsDlg.ui

    r4947 r5194  
    221221                    <property name="text">
    222222                        <string>&amp;OK</string>
    223                     </property>
    224                     <property name="accel">
    225                         <string>Alt+O</string>
    226223                    </property>
    227224                    <property name="autoDefault">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxTakeSnapshotDlg.ui

    r4947 r5194  
    236236                    <property name="text">
    237237                        <string>&amp;OK</string>
    238                     </property>
    239                     <property name="accel">
    240                         <string>Alt+O</string>
    241238                    </property>
    242239                    <property name="autoDefault">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMFirstRunWzd.ui

    r4204 r5194  
    267267                                    <string>&amp;CD/DVD-ROM Device</string>
    268268                                </property>
    269                                 <property name="accel">
    270                                     <string>Alt+C</string>
    271                                 </property>
    272269                                <property name="checked">
    273270                                    <bool>false</bool>
     
    283280                                <property name="text">
    284281                                    <string>&amp;Floppy Device</string>
    285                                 </property>
    286                                 <property name="accel">
    287                                     <string>Alt+F</string>
    288282                                </property>
    289283                            </widget>
     
    357351                                            <string>&amp;Host Drive</string>
    358352                                        </property>
    359                                         <property name="accel">
    360                                             <string>Alt+H</string>
    361                                         </property>
    362353                                        <property name="checked">
    363354                                            <bool>false</bool>
     
    413404                                        <property name="text">
    414405                                            <string>&amp;Image File</string>
    415                                         </property>
    416                                         <property name="accel">
    417                                             <string>Alt+I</string>
    418406                                        </property>
    419407                                    </widget>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui

    r4071 r5194  
    9494                        <string>&amp;Find</string>
    9595                    </property>
    96                     <property name="accel">
    97                         <string>Alt+F</string>
    98                     </property>
    9996                </widget>
    10097                <widget class="QPushButton">
     
    104101                    <property name="text">
    105102                        <string>&amp;Save</string>
    106                     </property>
    107                     <property name="accel">
    108                         <string>Alt+S</string>
    109103                    </property>
    110104                    <property name="autoDefault">
     
    121115                    <property name="text">
    122116                        <string>&amp;Refresh</string>
    123                     </property>
    124                     <property name="accel">
    125                         <string>Alt+R</string>
    126117                    </property>
    127118                </widget>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMLogViewer.ui.h

    r4164 r5194  
    120120    void languageChange()
    121121    {
     122        QKeySequence accel;
     123
    122124        QToolTip::add (mButtonClose, tr ("Close the search panel"));
     125
    123126        mSearchName->setText (tr ("Find "));
    124127        QToolTip::add (mSearchString, tr ("Enter a search string here"));
    125         mButtonPrev->setTextLabel (tr ("&Previous"));
    126         mButtonPrev->setAccel (QKeySequence (tr ("Alt+P")));
     128
     129        VBoxGlobal::setTextLabel (mButtonPrev, tr ("&Previous"));
    127130        QToolTip::add (mButtonPrev,
    128131            tr ("Search for the previous occurrence of the string"));
    129         mButtonNext->setTextLabel (tr ("&Next"));
    130         mButtonNext->setAccel (QKeySequence (tr ("Alt+N")));
     132
     133        VBoxGlobal::setTextLabel (mButtonNext, tr ("&Next"));
    131134        QToolTip::add (mButtonNext,
    132135            tr ("Search for the next occurrence of the string"));
     136
    133137        mCaseSensitive->setText (tr ("C&ase Sensitive"));
    134138        QToolTip::add (mCaseSensitive,
    135139            tr ("Perform case sensitive search (when checked)"));
     140
    136141        mWarningString->setText (tr ("String not found"));
    137142    }
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui

    r5127 r5194  
    145145                                <string>&amp;Generate</string>
    146146                            </property>
    147                             <property name="accel">
    148                                 <string>Alt+G</string>
    149                             </property>
    150147                            <property name="whatsThis" stdset="0">
    151148                                <string>Generates a new random MAC address.</string>
     
    206203                    <property name="text">
    207204                        <string>Ca&amp;ble Connected</string>
    208                     </property>
    209                     <property name="accel">
    210                         <string>Alt+B</string>
    211205                    </property>
    212206                    <property name="whatsThis" stdset="0">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSerialPortSettings.ui

    r4324 r5194  
    168168                            <property name="text">
    169169                                <string>&amp;Create Pipe</string>
    170                             </property>
    171                             <property name="accel">
    172                                 <string>Alt+C</string>
    173170                            </property>
    174171                            <property name="whatsThis" stdset="0">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r4947 r5194  
    10551055                                                        <string>Enable A&amp;CPI</string>
    10561056                                                    </property>
    1057                                                     <property name="accel">
    1058                                                         <string>Alt+C</string>
    1059                                                     </property>
    10601057                                                    <property name="whatsThis" stdset="0">
    10611058                                                        <string>&lt;qt&gt;When checked, the virtual machine will support
     
    10711068                                                        <string>Enable IO A&amp;PIC</string>
    10721069                                                    </property>
    1073                                                     <property name="accel">
    1074                                                         <string>Alt+P</string>
    1075                                                     </property>
    10761070                                                    <property name="whatsThis" stdset="0">
    10771071                                                        <string>&lt;qt&gt;When checked, the virtual machine will support
     
    10861080                                                    <property name="text">
    10871081                                                        <string>Enable &amp;VT-x/AMD-V</string>
    1088                                                     </property>
    1089                                                     <property name="accel">
    1090                                                         <string>Alt+V</string>
    10911082                                                    </property>
    10921083                                                    <property name="tristate">
     
    12941285                                            <property name="text">
    12951286                                                <string>&amp;Remember Media Mounted at Runtime</string>
    1296                                             </property>
    1297                                             <property name="accel">
    1298                                                 <string>Alt+R</string>
    12991287                                            </property>
    13001288                                            <property name="checked">
     
    15821570                                            <string>Host CD/DVD &amp;Drive</string>
    15831571                                        </property>
    1584                                         <property name="accel">
    1585                                             <string>Alt+D</string>
    1586                                         </property>
    15871572                                        <property name="whatsThis" stdset="0">
    15881573                                            <string>Mounts the specified CD/DVD drive to the virtual CD/DVD drive.</string>
     
    16591644                                            <string>&amp;Enable Passthrough</string>
    16601645                                        </property>
    1661                                         <property name="accel">
    1662                                             <string>Alt+E</string>
    1663                                         </property>
    16641646                                        <property name="whatsThis" stdset="0">
    16651647                                            <string>When checked, allows the guest to send ATAPI commands directly to the host drive which makes it possible to use CD/DVD writers connected to the host inside the VM. Note that writing audio CD inside the VM is not yet supported.</string>
     
    16821664                                        <property name="text">
    16831665                                            <string>&amp;ISO Image File</string>
    1684                                         </property>
    1685                                         <property name="accel">
    1686                                             <string>Alt+I</string>
    16871666                                        </property>
    16881667                                        <property name="whatsThis" stdset="0">
     
    18391818                                            <string>Host Floppy &amp;Drive</string>
    18401819                                        </property>
    1841                                         <property name="accel">
    1842                                             <string>Alt+D</string>
    1843                                         </property>
    18441820                                        <property name="whatsThis" stdset="0">
    18451821                                            <string>Mounts the specified host Floppy drive to the virtual Floppy drive.</string>
     
    18871863                                        <property name="text">
    18881864                                            <string>&amp;Image File</string>
    1889                                         </property>
    1890                                         <property name="accel">
    1891                                             <string>Alt+I</string>
    18921865                                        </property>
    18931866                                        <property name="whatsThis" stdset="0">
     
    22652238                        <property name="text">
    22662239                            <string>Enable &amp;USB Controller</string>
    2267                         </property>
    2268                         <property name="accel">
    2269                             <string>Alt+U</string>
    22702240                        </property>
    22712241                        <property name="whatsThis" stdset="0">
     
    28562826                    <property name="text">
    28572827                        <string>&amp;OK</string>
    2858                     </property>
    2859                     <property name="accel">
    2860                         <string>Alt+O</string>
    28612828                    </property>
    28622829                    <property name="autoDefault">
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