summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-28 06:33:08 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-28 12:30:51 (GMT)
commitffe1fb8198b707c1a081f6cf3748e867053d74e3 (patch)
tree5b0e93f391aa3ef9e5aaf7711c4aa9f8fea0dca3 /src
parent1f26eb79dfdc6850a6bde3a5fa0127b8e938bdba (diff)
downloadQt-ffe1fb8198b707c1a081f6cf3748e867053d74e3.zip
Qt-ffe1fb8198b707c1a081f6cf3748e867053d74e3.tar.gz
Qt-ffe1fb8198b707c1a081f6cf3748e867053d74e3.tar.bz2
Experimenting to try and get video to be visible
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/phonon/mmf/videooutput.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp
index 53178cb..f9f145a 100644
--- a/src/3rdparty/phonon/mmf/videooutput.cpp
+++ b/src/3rdparty/phonon/mmf/videooutput.cpp
@@ -41,10 +41,12 @@ MMF::VideoOutput::VideoOutput(QWidget* parent)
TRACE_ENTRY("parent 0x%08x", parent);
#ifndef PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET
- setPalette(QPalette(Qt::black));
+ //QPalette palette(Qt::black);
+ //palette.setColor(QPalette::Window, Qt::transparent);
+ //setPalette(palette);
//setAttribute(Qt::WA_OpaquePaintEvent, true);
- setAttribute(Qt::WA_NoSystemBackground, true);
- setAutoFillBackground(false);
+ //setAttribute(Qt::WA_NoSystemBackground, true);
+ //setAutoFillBackground(false);
#endif // PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET
#ifdef PHONON_MMF_DEBUG_VIDEO_OUTPUT
@@ -156,6 +158,7 @@ QSize MMF::VideoOutput::sizeHint() const
return result;
}
+#include <QPainter> // TEMPORARY
void MMF::VideoOutput::paintEvent(QPaintEvent* event)
{
TRACE_CONTEXT(VideoOutput::paintEvent, EVideoInternal);
@@ -165,7 +168,13 @@ void MMF::VideoOutput::paintEvent(QPaintEvent* event)
TRACE("regions %d", event->region().numRects());
TRACE("type %d", event->type());
- QWidget::paintEvent(event);
+/*
+ QPainter painter;
+ painter.begin(this);
+ painter.setBrush(QColor(0, 0, 0, 0));
+ painter.drawRects(event->region().rects());
+ painter.end();
+*/
}
QPaintEngine* MMF::VideoOutput::paintEngine() const