Changeset 61215 in vbox for trunk/src/VBox
- Timestamp:
- May 26, 2016 5:01:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r56217 r61215 393 393 QRect imageRect(QPoint(0, 0), m_pPreviewImg->size()); 394 394 imageRect.moveCenter(m_vRect.center()); 395 396 #ifdef VBOX_WS_MAC 397 # if QT_VERSION >= 0x050000 398 /* Set composition-mode to opaque: */ 399 pPainter->setCompositionMode(QPainter::CompositionMode_Source); 400 /* Replace translucent background with black one: */ 401 pPainter->fillRect(imageRect, QColor(Qt::black)); 402 /* Return default composition-mode back: */ 403 pPainter->setCompositionMode(QPainter::CompositionMode_SourceAtop); 404 # endif /* QT_VERSION >= 0x050000 */ 405 #endif /* VBOX_WS_MAC */ 406 395 407 /* Draw preview image: */ 396 408 pPainter->drawImage(imageRect.topLeft(), *m_pPreviewImg);
Note:
See TracChangeset
for help on using the changeset viewer.