VirtualBox

Changeset 65536 in vbox


Ignore:
Timestamp:
Jan 31, 2017 11:17:57 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113179
Message:

FE/Qt: bugref:8636: Runtime UI: Continue with r113157.

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

Legend:

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

    r64645 r65536  
    55
    66/*
    7  * Copyright (C) 2009-2016 Oracle Corporation
     7 * Copyright (C) 2009-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333#  include <QWindow>
    3434# endif /* VBOX_WS_WIN */
    35 # if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     35# ifdef VBOX_WS_X11
    3636#  include <QWindowStateChangeEvent>
    37 # endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     37# endif
    3838
    3939/* GUI includes: */
     
    4848
    4949#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     50
    5051
    5152/** UIToolBar reimplementation
     
    434435    , m_pHoverLeaveTimer(0)
    435436    , m_pAnimation(0)
    436 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     437#ifdef VBOX_WS_X11
    437438    , m_fIsParentMinimized(false)
    438 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     439#endif
    439440{
    440441    /* Prepare: */
     
    673674        case GeometryType_Full:
    674675        {
    675 # if QT_VERSION >= 0x050000
    676676            /* Map window onto required screen: */
    677677            Assert(iHostScreen < qApp->screens().size());
    678678            windowHandle()->setScreen(qApp->screens().at(iHostScreen));
    679 # endif /* QT_VERSION >= 0x050000 */
    680679            /* Set appropriate window size: */
    681680            resize(workingArea.size());
    682 # if QT_VERSION < 0x050000
    683             /* Move window onto required screen: */
    684             move(workingArea.topLeft());
    685 # endif /* QT_VERSION < 0x050000 */
    686681            break;
    687682        }
     
    896891    }
    897892
    898 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     893#ifdef VBOX_WS_X11
    899894    /* If that's window event: */
    900895    if (pWatched == this)
     
    921916        }
    922917    }
    923 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     918#endif /* VBOX_WS_X11 */
    924919
    925920    /* If that's parent window event: */
     
    979974                break;
    980975            }
    981 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     976#ifdef VBOX_WS_X11
    982977            case QEvent::WindowStateChange:
    983978            {
     
    1001996                break;
    1002997            }
    1003 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     998#endif /* VBOX_WS_X11 */
    1004999            default:
    10051000                break;
     
    10461041bool UIMiniToolBar::isParentMinimized() const
    10471042{
    1048 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
     1043#ifdef VBOX_WS_X11
    10491044    return m_fIsParentMinimized;
    1050 #else /* !VBOX_WS_X11 || QT_VERSION < 0x050000 */
     1045#else
    10511046    return parentWidget()->isMinimized();
    1052 #endif /* !VBOX_WS_X11 || QT_VERSION < 0x050000 */
     1047#endif
    10531048}
    10541049
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h

    r64643 r65536  
    55
    66/*
    7  * Copyright (C) 2009-2016 Oracle Corporation
     7 * Copyright (C) 2009-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3737    GeometryType_Full
    3838};
     39
    3940
    4041/** QWidget reimplementation
     
    184185    UIAnimation *m_pAnimation;
    185186
    186 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000
    187     /** Holds whether the parent is currently minimized.
    188       * Used to restore full-screen state when the parent restored again. */
     187#ifdef VBOX_WS_X11
     188    /** X11: Holds whether the parent is currently minimized.
     189      * Used to restore the full-screen/maximized state
     190      * when the parent restored again. */
    189191    bool m_fIsParentMinimized;
    190 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */
     192#endif
    191193};
    192194
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette