VirtualBox

Changeset 81227 in vbox


Ignore:
Timestamp:
Oct 11, 2019 1:19:56 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: QIManagerDialog: Sync geometry restoration rules with QIMainWindow, s.a. piece of code mentioned in r133911.

File:
1 edited

Legend:

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

    r79365 r81227  
    234234void QIManagerDialog::setDialogGeometry(const QRect &geometry)
    235235{
    236 #ifdef VBOX_WS_MAC
    237     /* Use the old approach for OSX: */
     236#if defined(VBOX_WS_MAC) || defined(VBOX_WS_WIN)
     237    /* Use the old approach for OSX/Win: */
    238238    move(geometry.topLeft());
    239239    resize(geometry.size());
    240 #else /* VBOX_WS_MAC */
    241     /* Use the new approach for Windows/X11: */
     240#else /* !VBOX_WS_MAC && !VBOX_WS_WIN */
     241    /* Use the new approach otherwise: */
    242242    UICommon::setTopLevelGeometry(this, geometry);
    243 #endif /* !VBOX_WS_MAC */
     243#endif /* !VBOX_WS_MAC && !VBOX_WS_WIN */
    244244
    245245    /* Maximize (if necessary): */
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