VirtualBox

Changeset 10787 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2008 4:44:18 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Force the fixed size on other platforms also.

File:
1 edited

Legend:

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

    r8334 r10787  
    3434void QIDialog::showEvent (QShowEvent * /* aEvent */)
    3535{
    36 #ifdef Q_WS_MAC
    3736    /* Two thinks to do for fixed size dialogs on MacOS X:
    38      * 1. make sure the layout is polished and have the right size
    39      * 2. disable that _unnecessary_ size grip (Bug in Qt?) */
     37     * 1. Make sure the layout is polished and have the right size
     38     * 2. Disable that _unnecessary_ size grip (Bug in Qt?) */
    4039    QSizePolicy policy = sizePolicy();
    4140    if ((policy.horizontalPolicy() == QSizePolicy::Fixed &&
     
    4443    {
    4544        adjustSize();
     45        setFixedSize (sizeHint());
     46#ifdef Q_WS_MAC
    4647        ChangeWindowAttributes (::darwinToWindowRef (this), kWindowNoAttributes, kWindowResizableAttribute);
     48#endif /* Q_WS_MAC */
    4749    }
    48 #endif /* Q_WS_MAC */
    4950}
    5051
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