VirtualBox

Changeset 18325 in vbox for trunk/src


Ignore:
Timestamp:
Mar 26, 2009 4:21:37 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 2869: Rework network adapter UI - Relayout Global Settings / Network page .ui file for MAC specific.

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

Legend:

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

    r18303 r18325  
    251251    Ui::VBoxGLSettingsNetwork::setupUi (this);
    252252
     253#ifdef Q_WS_MAC
     254    /* Make shifting spacer for MAC as we have fixed-size networks list */
     255    QSpacerItem *shiftSpacer =
     256        new QSpacerItem (0, 1, QSizePolicy::Expanding, QSizePolicy::Preferred);
     257    QGridLayout *mainLayout = static_cast <QGridLayout*> (layout());
     258    mainLayout->addItem (shiftSpacer, 1, 4, 2);
     259#endif
     260
    253261    /* Setup tree-widget */
    254262    mTwInterfaces->header()->hide();
     
    329337    mTwInterfaces->setFixedWidth (width);
    330338    mTwInterfaces->resizeColumnToContents (0);
    331     mSpacer1->changeSize (0, 1, QSizePolicy::Expanding, QSizePolicy::Preferred);
    332339#endif /* Q_WS_MAC */
    333340}
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGLSettingsNetwork.ui

    r18261 r18325  
    4545    </spacer>
    4646   </item>
    47    <item row="0" column="1" colspan="4">
     47   <item row="0" column="1" colspan="3">
    4848    <widget class="QLabel" name="mLbPageName">
    4949     <property name="text">
     
    121121    </spacer>
    122122   </item>
    123    <item row="2" column="4">
    124     <spacer name="mSpacer1">
    125      <property name="orientation">
    126       <enum>Qt::Horizontal</enum>
    127      </property>
    128      <property name="sizeType">
    129       <enum>QSizePolicy::Ignored</enum>
    130      </property>
    131      <property name="sizeHint" stdset="0">
    132       <size>
    133        <width>2</width>
    134        <height>20</height>
    135       </size>
    136      </property>
    137     </spacer>
    138    </item>
    139    <item row="3" column="2" colspan="3">
     123   <item row="3" column="2" colspan="2">
    140124    <widget class="QLabel" name="mLbInfo">
    141125     <property name="sizePolicy">
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