VirtualBox

Changeset 46979 in vbox


Ignore:
Timestamp:
Jul 4, 2013 11:14:03 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86987
Message:

FE/Qt: Popup-center: Relocate popup-stacks to window top.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp

    r46976 r46979  
    129129
    130130    /* Get this attributes: */
     131    bool fIsWindow = isWindow();
     132    const int iX = fIsWindow ? parentWidget()->x() : 0;
     133    const int iY = fIsWindow ? parentWidget()->y() : 0;
    131134    const int iWidth = parentWidget()->width();
    132135    const int iHeight = minimumHeightHint();
    133136
    134137    /* Move/resize according parent: */
    135     setGeometry(0, parentWidget()->height() - iHeight - m_iParentStatusBarHeight,
    136                 iWidth, iHeight);
     138    setGeometry(iX, iY, iWidth, iHeight);
    137139
    138140    /* Layout content: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette