VirtualBox

Changeset 57045 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 21, 2015 4:20:28 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Mini-toolbar transience support: No need for native flags since r101733.

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

Legend:

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

    r57015 r57045  
    33193319                               1 /* Source indication (1 = normal application) */);
    33203320}
    3321 
    3322 /* static */
    3323 void VBoxGlobal::setTransientFor(QWidget *pWidget, QWidget *pPropWidget)
    3324 {
    3325     XSetTransientForHint(pWidget->x11Info().display(),
    3326                          pWidget->window()->winId(),
    3327                          pPropWidget->window()->winId());
    3328 }
    33293321#endif /* Q_WS_X11 */
    33303322
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r57015 r57045  
    361361    /** X11: Performs mapping of the passed @a pWidget to host-screen with passed @a uScreenId. */
    362362    static bool setFullScreenMonitorX11(QWidget *pWidget, ulong uScreenId);
    363     /** X11: Ensures @a pPropWidget become transient for the @a pWidget. */
    364     static void setTransientFor(QWidget *pWidget, QWidget *pPropWidget);
    365363#endif /* Q_WS_X11 */
    366364
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r57043 r57045  
    249249    AssertPtrReturnVoid(m_pMiniToolBar);
    250250    {
    251 #ifdef Q_WS_X11
    252         /* Make sure mini-toolbar is always-on-top of machine-window: */
    253         VBoxGlobal::setTransientFor(m_pMiniToolBar, this);
    254 #endif /* Q_WS_X11 */
    255251        /* Configure mini-toolbar: */
    256252        m_pMiniToolBar->addMenus(actionPool()->menus());
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r57043 r57045  
    131131    AssertPtrReturnVoid(m_pMiniToolBar);
    132132    {
    133 #ifdef Q_WS_X11
    134         /* Make sure mini-toolbar is always-on-top of machine-window: */
    135         VBoxGlobal::setTransientFor(m_pMiniToolBar, this);
    136 #endif /* Q_WS_X11 */
    137133        /* Configure mini-toolbar: */
    138134        m_pMiniToolBar->addMenus(actionPool()->menus());
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