VirtualBox

Changeset 61982 in vbox for trunk


Ignore:
Timestamp:
Jul 1, 2016 2:55:11 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:5978: Runtime UI: Moving mini-toolbar logic code to UIMiniToolBar class (forgot the seamless mode, s.a. r108411).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r60362 r61982  
    178178    resize(workingArea.size());
    179179    move(workingArea.topLeft());
    180 
    181 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    182     /* If there is a mini-toolbar: */
    183     if (m_pMiniToolBar)
    184     {
    185         /* Set appropriate geometry for mini-toolbar: */
    186         m_pMiniToolBar->resize(workingArea.size());
    187         m_pMiniToolBar->move(workingArea.topLeft());
    188     }
    189 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    190180}
    191181
     
    200190        !pSeamlessLogic->hasHostScreenForGuestScreen(m_uScreenId))
    201191    {
    202 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    203         /* If there is a mini-toolbar: */
    204         if (m_pMiniToolBar)
    205         {
    206             /* Hide mini-toolbar: */
    207             m_pMiniToolBar->hide();
    208         }
    209 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    210 
    211192        /* Hide window: */
    212193        hide();
     
    223204        /* Show window in normal mode: */
    224205        show();
    225 
    226 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    227         /* If there is a mini-toolbar: */
    228         if (m_pMiniToolBar)
    229         {
    230             /* Show mini-toolbar in normal mode: */
    231             m_pMiniToolBar->show();
    232         }
    233 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    234206
    235207        /* Adjust machine-view size if necessary: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r61979 r61982  
    604604#elif defined(VBOX_WS_WIN)
    605605
    606     /* Adjust window before showing full-screen: */
     606    /* Adjust window: */
    607607    sltAdjust();
    608     showFullScreen();
     608    /* Show window in necessary mode: */
     609    switch (m_geometryType)
     610    {
     611        case GeometryType_Available: return show();
     612        case GeometryType_Full:      return showFullScreen();
     613    }
    609614
    610615#elif defined(VBOX_WS_X11)
    611616
    612     /* Show window full-screen before adjusting: */
    613     showFullScreen();
     617    /* Show window in necessary mode: */
     618    switch (m_geometryType)
     619    {
     620        case GeometryType_Available: return show();
     621        case GeometryType_Full:      return showFullScreen();
     622    }
     623    /* Adjust window: */
    614624    sltAdjust();
    615625
     
    629639    Q_UNUSED(iHostScreen);
    630640    /* And corresponding working area: */
    631     const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen);
     641    QRect workingArea;
     642    switch (m_geometryType)
     643    {
     644        case GeometryType_Available: workingArea = vboxGlobal().availableGeometry(iHostScreen); break;
     645        case GeometryType_Full:      workingArea = vboxGlobal().screenGeometry(iHostScreen); break;
     646    }
    632647    Q_UNUSED(workingArea);
    633648
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