diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 13:38:08 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 13:38:08 (GMT) |
commit | 39f88fc60ad6ce323000a10b2925ad7dbb1544c2 (patch) | |
tree | 5aff3217bc1df230a07e8ca0e817a82ea7c6532e /demos | |
parent | 8c22d9ef7c19a742fcd024ff6e568526df8bfea8 (diff) | |
parent | ae305abfdb795b472b2b9d200bf3b11af00d7d1f (diff) | |
download | Qt-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.cpp | 6 |
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) |