VirtualBox

Changeset 47693 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 13, 2013 1:09:31 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: Popup-stack: Support for non-top-level parents.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r47644 r47693  
    372372
    373373    /* Assign event-filter: */
    374     pParent->installEventFilter(pPopupStack);
     374    pParent->window()->installEventFilter(pPopupStack);
    375375
    376376    /* Assign parent depending on passed *stack* type: */
     
    401401
    402402    /* Unassign event-filter: */
    403     pParent->removeEventFilter(pPopupStack);
     403    pParent->window()->removeEventFilter(pPopupStack);
    404404}
    405405
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp

    r47644 r47693  
    116116    /* Read parent geometry: */
    117117    QRect geo(parentWidget()->geometry());
     118    if (!parentWidget()->isWindow())
     119        geo.moveTo(parentWidget()->mapToGlobal(QPoint(0, 0)));
    118120
    119121    /* Determine size: */
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