Changeset 65520 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 30, 2017 4:56:35 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r64334 r65520 24 24 # include <QTimer> 25 25 # ifdef VBOX_WS_WIN 26 # if QT_VERSION >= 0x050000 27 # include <QWindow> 28 # endif /* QT_VERSION >= 0x050000 */ 29 # endif /* VBOX_WS_WIN */ 26 # include <QWindow> 27 # endif 30 28 31 29 /* GUI includes: */ … … 62 60 #endif /* VBOX_WS_MAC */ 63 61 , m_fWasMinimized(false) 64 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x05000062 #ifdef VBOX_WS_X11 65 63 , m_fIsMinimized(false) 66 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */64 #endif 67 65 { 68 66 } … … 356 354 #elif defined(VBOX_WS_WIN) 357 355 358 # if QT_VERSION >= 0x050000359 356 /* Map window onto required screen: */ 360 357 windowHandle()->setScreen(qApp->screens().at(iHostScreen)); 361 # endif /* QT_VERSION >= 0x050000 */362 358 /* Set appropriate window size: */ 363 359 resize(workingArea.size()); 364 # if QT_VERSION < 0x050000365 /* Move window onto required screen: */366 move(workingArea.topLeft());367 # endif /* QT_VERSION < 0x050000 */368 360 369 361 #elif defined(VBOX_WS_X11) … … 545 537 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 546 538 547 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000539 #ifdef VBOX_WS_X11 548 540 void UIMachineWindowFullscreen::changeEvent(QEvent *pEvent) 549 541 { … … 583 575 UIMachineWindow::changeEvent(pEvent); 584 576 } 585 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000*/577 #endif /* VBOX_WS_X11 */ 586 578 587 579 #ifdef VBOX_WS_WIN 588 # if QT_VERSION >= 0x050000589 580 void UIMachineWindowFullscreen::showEvent(QShowEvent *pEvent) 590 581 { … … 598 589 UIMachineWindow::showEvent(pEvent); 599 590 } 600 # endif /* QT_VERSION >= 0x050000 */601 591 #endif /* VBOX_WS_WIN */ 602 592 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r62493 r65520 102 102 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 103 103 104 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000105 /** Handles @a pEvent about state change. */104 #ifdef VBOX_WS_X11 105 /** X11: Handles @a pEvent about state change. */ 106 106 void changeEvent(QEvent *pEvent); 107 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */107 #endif 108 108 109 109 #ifdef VBOX_WS_WIN 110 # if QT_VERSION >= 0x050000111 110 /** Win: Handles show @a pEvent. */ 112 111 void showEvent(QShowEvent *pEvent); 113 # endif /* QT_VERSION >= 0x050000 */ 114 #endif /* VBOX_WS_WIN */ 112 #endif 115 113 116 114 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11) … … 129 127 * Used to restore minimized state when the window shown again. */ 130 128 bool m_fWasMinimized; 131 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000132 /** Holds whether the window is currently minimized.129 #ifdef VBOX_WS_X11 130 /** X11: Holds whether the window is currently minimized. 133 131 * Used to restore full-screen state when the window restored again. */ 134 132 bool m_fIsMinimized; 135 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */133 #endif 136 134 137 135 /** Factory support. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r65519 r65520 52 52 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 53 53 , m_fWasMinimized(false) 54 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x05000054 #ifdef VBOX_WS_X11 55 55 , m_fIsMinimized(false) 56 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */56 #endif 57 57 { 58 58 } … … 92 92 93 93 #ifdef VBOX_WITH_TRANSLUCENT_SEAMLESS 94 # if defined(VBOX_WS_MAC) && QT_VERSION < 0x050000 95 /* Using native API to enable translucent background for the Mac host. 96 * - We also want to disable window-shadows which is possible 97 * using Qt::WA_MacNoShadow only since Qt 4.8, 98 * while minimum supported version is 4.7.1 for now: */ 99 ::darwinSetShowsWindowTransparent(this, true); 100 # else /* !VBOX_WS_MAC || QT_VERSION >= 0x050000 */ 101 /* Using Qt API to enable translucent background: 102 * - Under Win host Qt conflicts with 3D stuff (black seamless regions). 103 * - Under Mac host Qt doesn't allows to disable window-shadows 104 * until version 4.8, but minimum supported version is 4.7.1 for now. */ 94 /* Using Qt API to enable translucent background: */ 105 95 setAttribute(Qt::WA_TranslucentBackground); 106 # endif /* !VBOX_WS_MAC || QT_VERSION >= 0x050000 */107 96 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS */ 108 97 … … 185 174 Q_UNUSED(workingArea); 186 175 187 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000176 #ifdef VBOX_WS_X11 188 177 189 178 /* Make sure we are located on corresponding host-screen: */ … … 257 246 placeOnScreen(); 258 247 259 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000248 #ifdef VBOX_WS_X11 260 249 /* Show window: */ 261 250 if (!isMaximized()) … … 307 296 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 308 297 309 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000298 #ifdef VBOX_WS_X11 310 299 void UIMachineWindowSeamless::changeEvent(QEvent *pEvent) 311 300 { … … 345 334 UIMachineWindow::changeEvent(pEvent); 346 335 } 347 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000*/336 #endif /* VBOX_WS_X11 */ 348 337 349 338 #ifdef VBOX_WS_WIN 350 # if QT_VERSION >= 0x050000351 339 void UIMachineWindowSeamless::showEvent(QShowEvent *pEvent) 352 340 { … … 360 348 UIMachineWindow::showEvent(pEvent); 361 349 } 362 # endif /* QT_VERSION >= 0x050000 */363 350 #endif /* VBOX_WS_WIN */ 364 351 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r65419 r65520 74 74 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */ 75 75 76 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x05000077 /** Handles @a pEvent about state change. */76 #ifdef VBOX_WS_X11 77 /** X11: Handles @a pEvent about state change. */ 78 78 void changeEvent(QEvent *pEvent); 79 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */79 #endif 80 80 81 81 #ifdef VBOX_WS_WIN 82 # if QT_VERSION >= 0x05000083 82 /** Win: Handles show @a pEvent. */ 84 83 void showEvent(QShowEvent *pEvent); 85 # endif /* QT_VERSION >= 0x050000 */ 86 #endif /* VBOX_WS_WIN */ 84 #endif 87 85 88 86 #ifdef VBOX_WITH_MASKED_SEAMLESS … … 106 104 * Used to restore minimized state when the window shown again. */ 107 105 bool m_fWasMinimized; 108 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000109 /** Holds whether the window is currently minimized.106 #ifdef VBOX_WS_X11 107 /** X11: Holds whether the window is currently minimized. 110 108 * Used to restore maximized state when the window restored again. */ 111 109 bool m_fIsMinimized; 112 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */110 #endif 113 111 114 112 /** Factory support. */
Note:
See TracChangeset
for help on using the changeset viewer.