diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-09-16 17:54:47 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-09-23 12:36:41 (GMT) |
commit | d2cad41ec85f753d7da4ddbf3fe70d034aaea8fc (patch) | |
tree | 48b4d2c09815bac4201f3dfb0b1781c4bf4c58a8 /src/3rdparty/phonon/mmf/videooutput.cpp | |
parent | a4c600e205a79c5dfc7657b792374a8ce9e308d0 (diff) | |
download | Qt-d2cad41ec85f753d7da4ddbf3fe70d034aaea8fc.zip Qt-d2cad41ec85f753d7da4ddbf3fe70d034aaea8fc.tar.gz Qt-d2cad41ec85f753d7da4ddbf3fe70d034aaea8fc.tar.bz2 |
Modified video output widget to make video visible on target device
Diffstat (limited to 'src/3rdparty/phonon/mmf/videooutput.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/videooutput.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp index 2544a97..2130d58 100644 --- a/src/3rdparty/phonon/mmf/videooutput.cpp +++ b/src/3rdparty/phonon/mmf/videooutput.cpp @@ -47,9 +47,9 @@ MMF::VideoOutput::VideoOutput(QWidget* parent) #ifndef PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET setPalette(QPalette(Qt::black)); - //setAttribute(Qt::WA_OpaquePaintEvent, true); - setAttribute(Qt::WA_NoSystemBackground, true); - setAutoFillBackground(false); + setAttribute(Qt::WA_OpaquePaintEvent, true); + setAttribute(Qt::WA_NoSystemBackground, true); + setAutoFillBackground(false); #endif // PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET dump(); @@ -120,13 +120,17 @@ void MMF::VideoOutput::paintEvent(QPaintEvent* event) dump(); -/* + // Note: composition mode code was a failed attempt to get transparent + // alpha values to be propagated to the (EColor16MU) window surface. + QPainter painter; + //const QPainter::CompositionMode compositionMode = painter.compositionMode(); + //painter.setCompositionMode(QPainter::CompositionMode_Source); painter.begin(this); - painter.setBrush(QColor(0, 0, 0, 255)); // opaque black + painter.setBrush(QColor(0, 0, 0, 0)); painter.drawRects(event->region().rects()); painter.end(); -*/ + //painter.setCompositionMode(compositionMode); } void MMF::VideoOutput::resizeEvent(QResizeEvent* event) |