VirtualBox

Changeset 3349 in vbox


Ignore:
Timestamp:
Jul 2, 2007 1:34:22 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Fixed focus traversal order on the Network page of the VM settings dialog.

Location:
trunk/src/VBox/Frontends/VirtualBox/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r3217 r3349  
    20332033                        <number>0</number>
    20342034                    </property>
     2035                    <widget class="QTabWidget">
     2036                        <property name="name">
     2037                            <cstring>tbwNetwork</cstring>
     2038                        </property>
     2039                        <property name="sizePolicy">
     2040                            <sizepolicy>
     2041                                <hsizetype>1</hsizetype>
     2042                                <vsizetype>1</vsizetype>
     2043                                <horstretch>0</horstretch>
     2044                                <verstretch>0</verstretch>
     2045                            </sizepolicy>
     2046                        </property>
     2047                    </widget>
    20352048                    <widget class="QGroupBox">
    20362049                        <property name="name">
     
    29842997    <variable access="private">QWidgetStack *wstUSBFilters;</variable>
    29852998    <variable access="private">bool mUSBFilterListModified;</variable>
    2986     <variable access="private">QTabWidget* tbwNetwork;</variable>
    29872999    <variable access="private">VBoxSharedFoldersSettings* mSharedFolders;</variable>
    29883000    <variable access="private">QString warningString;</variable>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r3217 r3349  
    281281    void fixTabStops()
    282282    {
    283         /* Fixing focus order for BootItemsList */
     283        /* fix focus order for BootItemsList */
    284284        setTabOrder (mBootTable, mBtnUp);
    285285        setTabOrder (mBtnUp, mBtnDown);
     
    705705
    706706    /* Network Page */
     707
    707708#ifndef Q_WS_WIN
    708709    gbInterfaceList->setHidden (true);
    709710#endif
    710 
    711711    /* setup tab widget */
    712     QVBoxLayout* pageNetworkLayout = static_cast<QVBoxLayout*> (pageNetwork->layout());
    713     tbwNetwork = new QTabWidget (pageNetwork, "tbwNetwork");
    714     pageNetworkLayout->insertWidget (0, tbwNetwork);
    715     tbwNetwork->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Minimum);
    716712    mNoInterfaces = tr ("<No suitable interfaces>");
    717713    /* setup iconsets */
     
    21262122    page->setValidator (wval);
    21272123    page->revalidate();
     2124
     2125#ifdef Q_WS_WIN
     2126
     2127    /* fix focus order (make sure the Host Interface list UI goes after the
     2128     * last network adapter UI item) */
     2129
     2130    setTabOrder (page->chbCableConnected, lbHostInterface);
     2131    setTabOrder (lbHostInterface, pbHostAdd);
     2132    setTabOrder (pbHostAdd, pbHostRemove);
     2133
     2134#endif
    21282135}
    21292136
Note: See TracChangeset for help on using the changeset viewer.

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