VirtualBox

Changeset 22992 in vbox


Ignore:
Timestamp:
Sep 14, 2009 10:43:15 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: 4011: VM Network Settings UI: Second fix for MAC layout.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsNetwork.h

    r22964 r22992  
    5555protected:
    5656
     57    void showEvent (QShowEvent *aEvent);
     58
    5759    void retranslateUi();
    5860
     
    7577    QString mIntName;
    7678    QString mHoiName;
     79
     80    bool mPolished;
    7781};
    7882
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r22965 r22992  
    3939    , mParent (aParent)
    4040    , mValidator (0)
     41    , mPolished (false)
    4142{
    4243    /* Apply UI decorations */
     
    6566    mTbMAC->setStyleSheet ("QToolButton {border: 0px none black;}");
    6667#endif /* Q_WS_MAC */
    67 
    68     /* Hide advanced items initially */
    69     toggleAdvanced();
    7068
    7169    /* Applying language settings */
     
    258256    Assert (result.isNull() || !result.isEmpty());
    259257    return result;
     258}
     259
     260void VBoxVMSettingsNetwork::showEvent (QShowEvent *aEvent)
     261{
     262    if (!mPolished)
     263    {
     264        mPolished = true;
     265
     266        /* Give the minimum size hint to the first layout column */
     267        mNetworkChildGridLayout->setColumnMinimumWidth (0, mLbAttachmentType->width());
     268
     269        /* Hide advanced items initially */
     270        toggleAdvanced();
     271    }
     272    QWidget::showEvent (aEvent);
    260273}
    261274
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