Changeset 59819 in vbox
- Timestamp:
- Feb 25, 2016 6:24:12 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r59639 r59819 1459 1459 /* Set composition-mode to paint: */ 1460 1460 painter.setCompositionMode(QPainter::CompositionMode_SourceOver); 1461 1461 1462 #if defined(VBOX_WITH_TRANSLUCENT_SEAMLESS) 1462 # if defined(Q_WS_WIN) || defined(Q_WS_X11) 1463 # if defined(Q_WS_WIN) || defined(Q_WS_X11) || QT_VERSION >= 0x050000 1463 1464 /* Replace translucent background with black one: */ 1464 1465 painter.setCompositionMode(QPainter::CompositionMode_Source); 1465 1466 painter.fillRect(paintRect, QColor(Qt::black)); 1466 1467 painter.setCompositionMode(QPainter::CompositionMode_SourceAtop); 1467 # endif /* Q_WS_WIN || Q_WS_X11 */1468 # endif /* Q_WS_WIN || Q_WS_X11 || QT_VERSION >= 0x050000 */ 1468 1469 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS */ 1469 /* Paint rectangle: */ 1470 1471 /* Draw image rectangle: */ 1470 1472 drawImageRect(painter, sourceImage, paintRect, 1471 1473 m_pMachineView->contentsX(), m_pMachineView->contentsY(), -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r58943 r59819 115 115 prepareStatusBar(); 116 116 117 /* Prepare visual-state: */ 118 prepareVisualState(); 119 117 120 /* Prepare machine-view: */ 118 121 prepareMachineView(); 119 120 /* Prepare visual-state: */121 prepareVisualState();122 122 123 123 /* Prepare handlers: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r59814 r59819 87 87 88 88 #ifdef VBOX_WITH_TRANSLUCENT_SEAMLESS 89 # if def Q_WS_MAC89 # if defined(Q_WS_MAC) && QT_VERSION < 0x050000 90 90 /* Using native API to enable translucent background for the Mac host. 91 91 * - We also want to disable window-shadows which is possible … … 93 93 * while minimum supported version is 4.7.1 for now: */ 94 94 ::darwinSetShowsWindowTransparent(this, true); 95 # else /* Q_WS_MAC*/95 # else /* !Q_WS_MAC || QT_VERSION >= 0x050000 */ 96 96 /* Using Qt API to enable translucent background: 97 97 * - Under Win host Qt conflicts with 3D stuff (black seamless regions). … … 99 99 * until version 4.8, but minimum supported version is 4.7.1 for now. */ 100 100 setAttribute(Qt::WA_TranslucentBackground); 101 # endif /* !Q_WS_MAC */101 # endif /* !Q_WS_MAC || QT_VERSION >= 0x050000 */ 102 102 #endif /* VBOX_WITH_TRANSLUCENT_SEAMLESS */ 103 103
Note:
See TracChangeset
for help on using the changeset viewer.