VirtualBox

Changeset 61585 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 3:19:05 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8422: Runtime UI: Full-screen window: Mapping windows instead of moving for Qt5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r61583 r61585  
    2323# include <QMenu>
    2424# include <QTimer>
     25# ifdef VBOX_WS_WIN
     26#  if QT_VERSION >= 0x050000
     27#   include <QWindow>
     28#  endif /* QT_VERSION >= 0x050000 */
     29# endif /* VBOX_WS_WIN */
    2530
    2631/* GUI includes: */
     
    389394#elif defined(VBOX_WS_WIN)
    390395
    391     /* Set appropriate geometry for window: */
     396# if QT_VERSION >= 0x050000
     397    /* Map window onto required screen: */
     398    windowHandle()->setScreen(qApp->screens().at(iHostScreen));
     399# endif /* QT_VERSION >= 0x050000 */
     400    /* Set appropriate window size: */
    392401    resize(workingArea.size());
     402# if QT_VERSION < 0x050000
     403    /* Move window onto required screen: */
    393404    move(workingArea.topLeft());
     405# endif /* QT_VERSION < 0x050000 */
    394406
    395407    /* If there is a mini-toolbar: */
    396408    if (m_pMiniToolBar)
    397409    {
    398         /* Set appropriate geometry for mini-toolbar: */
     410# if QT_VERSION >= 0x050000
     411        /* Map mini-toolbar onto required screen: */
     412        m_pMiniToolBar->windowHandle()->setScreen(qApp->screens().at(iHostScreen));
     413# endif /* QT_VERSION >= 0x050000 */
     414        /* Set appropriate mini-toolbar size: */
    399415        m_pMiniToolBar->resize(workingArea.size());
     416# if QT_VERSION < 0x050000
     417        /* Move mini-toolbar onto required screen: */
    400418        m_pMiniToolBar->move(workingArea.topLeft());
     419# endif /* QT_VERSION < 0x050000 */
    401420    }
    402421
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