VirtualBox

Ignore:
Timestamp:
May 10, 2012 1:20:09 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: Network Manager stuff: More strict layout for Network Manager window.

File:
1 edited

Legend:

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

    r41153 r41235  
    281281
    282282    /* Constructor: */
    283     UINetworkManagerDialog(QWidget *pParent = 0)
    284         : QIWithRetranslateUI<QMainWindow>(pParent)
     283    UINetworkManagerDialog()
    285284    {
    286285        /* Do not count that window as important for application,
     
    363362            /* Hide button-box: */
    364363            m_pButtonBox->setHidden(true);
     364            /* Let central-widget update its layout before being hidden: */
     365            QCoreApplication::sendPostedEvents(centralWidget(), QEvent::LayoutRequest);
    365366            /* Hide dialog: */
    366367            hide();
     
    397398    void showEvent(QShowEvent *pShowEvent)
    398399    {
    399         /* Resize to minimum size: */
    400         resize(minimumSize());
     400        /* Resize to minimum size-hint: */
     401        resize(minimumSizeHint());
    401402
    402403        /* Center according current main application window: */
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