VirtualBox

Changeset 61215 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 26, 2016 5:01:21 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Details pane: Preview element: Yet another Qt5 migration consequence, the usual fix for the traclucent content being blend-out by the backing-store.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp

    r56217 r61215  
    393393        QRect imageRect(QPoint(0, 0), m_pPreviewImg->size());
    394394        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
    395407        /* Draw preview image: */
    396408        pPainter->drawImage(imageRect.topLeft(), *m_pPreviewImg);
Note: See TracChangeset for help on using the changeset viewer.

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