VirtualBox

Changeset 61583 in vbox for trunk/src/VBox


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

FE/Qt: bugref:8422: Runtime UI: Full-screen window: Splitting the placeOnScreen() code into usual platform threads.

File:
1 edited

Legend:

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

    r61580 r61583  
    351351    /* And corresponding working area: */
    352352    const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen);
    353 
    354 #if   defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    355     /* Set appropriate geometry for window: */
    356     resize(workingArea.size());
    357     move(workingArea.topLeft());
    358 
    359     /* If there is a mini-toolbar: */
    360     if (m_pMiniToolBar)
    361     {
    362         /* Set appropriate geometry for mini-toolbar: */
    363         m_pMiniToolBar->resize(workingArea.size());
    364         m_pMiniToolBar->move(workingArea.topLeft());
    365     }
    366 #elif defined(VBOX_WS_MAC)
     353    Q_UNUSED(workingArea);
     354
     355#if defined(VBOX_WS_MAC)
     356
    367357    /* Make sure this window has fullscreen logic: */
    368358    UIMachineLogicFullscreen *pFullscreenLogic = qobject_cast<UIMachineLogicFullscreen*>(machineLogic());
     
    396386        setGeometry(geo);
    397387    }
    398 #endif /* VBOX_WS_MAC */
     388
     389#elif defined(VBOX_WS_WIN)
     390
     391    /* Set appropriate geometry for window: */
     392    resize(workingArea.size());
     393    move(workingArea.topLeft());
     394
     395    /* If there is a mini-toolbar: */
     396    if (m_pMiniToolBar)
     397    {
     398        /* Set appropriate geometry for mini-toolbar: */
     399        m_pMiniToolBar->resize(workingArea.size());
     400        m_pMiniToolBar->move(workingArea.topLeft());
     401    }
     402
     403#elif defined(VBOX_WS_X11)
     404
     405    /* Set appropriate geometry for window: */
     406    resize(workingArea.size());
     407    move(workingArea.topLeft());
     408
     409    /* If there is a mini-toolbar: */
     410    if (m_pMiniToolBar)
     411    {
     412        /* Set appropriate geometry for mini-toolbar: */
     413        m_pMiniToolBar->resize(workingArea.size());
     414        m_pMiniToolBar->move(workingArea.topLeft());
     415    }
     416
     417#else
     418
     419# warning "port me"
     420
     421#endif
    399422}
    400423
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