VirtualBox

Ignore:
Timestamp:
Jan 31, 2017 4:38:19 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8636: Runtime UI: Mini-toolbar: Restore the mini-toolbar z-order according to it's parent, required after r113198.

File:
1 edited

Legend:

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

    r65551 r65552  
    3030# include <QStateMachine>
    3131# include <QPainter>
    32 # ifdef VBOX_WS_WIN
    33 #  include <QWindow>
    34 # endif /* VBOX_WS_WIN */
     32# include <QWindow>
    3533# ifdef VBOX_WS_X11
    3634#  include <QWindowStateChangeEvent>
     
    590588    LogRel2(("GUI: UIMiniToolBar::sltShow\n"));
    591589
     590    /* Update transience: */
     591    sltAdjustTransience();
     592
    592593#if defined(VBOX_WS_MAC)
    593594
     
    775776
    776777#endif
     778}
     779
     780void UIMiniToolBar::sltAdjustTransience()
     781{
     782    // WORKAROUND:
     783    // Make sure win id is generated,
     784    // else Qt5 can crash otherwise.
     785    winId();
     786    m_pParent->winId();
     787
     788    /* Add the transience dependency: */
     789    windowHandle()->setTransientParent(m_pParent->windowHandle());
    777790}
    778791
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