VirtualBox

Ignore:
Timestamp:
Jul 22, 2008 1:33:10 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: Respect toolbar minimum width.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsDialog.cpp

    r10776 r10811  
    339339    mPolished = true;
    340340
     341    int minWidth = mSelector->minWidth();
    341342#ifdef Q_WS_MAC
    342343    /* Set all size policies to ignored */
     
    349350        mStack->setCurrentIndex (i);
    350351        layout()->activate();
    351         mSizeList.insert (0, minimumSize());
     352        QSize s = minimumSize();
     353        if (minWidth > s.width())
     354            s.setWidth (minWidth);
     355        mSizeList.insert (0, s);
    352356        mStack->widget (i)->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Ignored);
    353357    }
     
    356360#else /* Q_WS_MAC */
    357361    /* Resize to the minimum possible size */
    358     int minWidth = mSelector->minWidth();
    359362    QSize s = minimumSize();
    360363    if (minWidth > s.width())
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