Changeset 65536 in vbox
- Timestamp:
- Jan 31, 2017 11:17:57 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113179
- 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 5 5 6 6 /* 7 * Copyright (C) 2009-201 6Oracle Corporation7 * Copyright (C) 2009-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 # include <QWindow> 34 34 # endif /* VBOX_WS_WIN */ 35 # if defined(VBOX_WS_X11) && QT_VERSION >= 0x05000035 # ifdef VBOX_WS_X11 36 36 # include <QWindowStateChangeEvent> 37 # endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */37 # endif 38 38 39 39 /* GUI includes: */ … … 48 48 49 49 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 50 50 51 51 52 /** UIToolBar reimplementation … … 434 435 , m_pHoverLeaveTimer(0) 435 436 , m_pAnimation(0) 436 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000437 #ifdef VBOX_WS_X11 437 438 , m_fIsParentMinimized(false) 438 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */439 #endif 439 440 { 440 441 /* Prepare: */ … … 673 674 case GeometryType_Full: 674 675 { 675 # if QT_VERSION >= 0x050000676 676 /* Map window onto required screen: */ 677 677 Assert(iHostScreen < qApp->screens().size()); 678 678 windowHandle()->setScreen(qApp->screens().at(iHostScreen)); 679 # endif /* QT_VERSION >= 0x050000 */680 679 /* Set appropriate window size: */ 681 680 resize(workingArea.size()); 682 # if QT_VERSION < 0x050000683 /* Move window onto required screen: */684 move(workingArea.topLeft());685 # endif /* QT_VERSION < 0x050000 */686 681 break; 687 682 } … … 896 891 } 897 892 898 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000893 #ifdef VBOX_WS_X11 899 894 /* If that's window event: */ 900 895 if (pWatched == this) … … 921 916 } 922 917 } 923 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000*/918 #endif /* VBOX_WS_X11 */ 924 919 925 920 /* If that's parent window event: */ … … 979 974 break; 980 975 } 981 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000976 #ifdef VBOX_WS_X11 982 977 case QEvent::WindowStateChange: 983 978 { … … 1001 996 break; 1002 997 } 1003 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000*/998 #endif /* VBOX_WS_X11 */ 1004 999 default: 1005 1000 break; … … 1046 1041 bool UIMiniToolBar::isParentMinimized() const 1047 1042 { 1048 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x0500001043 #ifdef VBOX_WS_X11 1049 1044 return m_fIsParentMinimized; 1050 #else /* !VBOX_WS_X11 || QT_VERSION < 0x050000 */1045 #else 1051 1046 return parentWidget()->isMinimized(); 1052 #endif /* !VBOX_WS_X11 || QT_VERSION < 0x050000 */1047 #endif 1053 1048 } 1054 1049 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r64643 r65536 5 5 6 6 /* 7 * Copyright (C) 2009-201 6Oracle Corporation7 * Copyright (C) 2009-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 37 37 GeometryType_Full 38 38 }; 39 39 40 40 41 /** QWidget reimplementation … … 184 185 UIAnimation *m_pAnimation; 185 186 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. */ 189 191 bool m_fIsParentMinimized; 190 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */192 #endif 191 193 }; 192 194
Note:
See TracChangeset
for help on using the changeset viewer.