summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-03-30 13:38:08 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-30 13:38:08 (GMT)
commit39f88fc60ad6ce323000a10b2925ad7dbb1544c2 (patch)
tree5aff3217bc1df230a07e8ca0e817a82ea7c6532e /demos
parent8c22d9ef7c19a742fcd024ff6e568526df8bfea8 (diff)
parentae305abfdb795b472b2b9d200bf3b11af00d7d1f (diff)
downloadQt-39f88fc60ad6ce323000a10b2925ad7dbb1544c2.zip
Qt-39f88fc60ad6ce323000a10b2925ad7dbb1544c2.tar.gz
Qt-39f88fc60ad6ce323000a10b2925ad7dbb1544c2.tar.bz2
Merge remote branch 'origin/4.7' into qt-4.7-from-4.6
Diffstat (limited to 'demos')
-rw-r--r--demos/multimedia/player/videowidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/multimedia/player/videowidget.cpp b/demos/multimedia/player/videowidget.cpp
index 3bf36c3..be864ec 100644
--- a/demos/multimedia/player/videowidget.cpp
+++ b/demos/multimedia/player/videowidget.cpp
@@ -47,6 +47,12 @@ VideoWidget::VideoWidget(QWidget *parent)
: QVideoWidget(parent)
{
setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
+
+ QPalette p = palette();
+ p.setColor(QPalette::Window, Qt::black);
+ setPalette(p);
+
+ setAttribute(Qt::WA_OpaquePaintEvent);
}
void VideoWidget::keyPressEvent(QKeyEvent *event)