diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 15:38:08 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 15:38:08 +0200 |
commit | 39f88fc60ad6ce323000a10b2925ad7dbb1544c2 (patch) | |
tree | 5aff3217bc1df230a07e8ca0e817a82ea7c6532e /demos | |
parent | 8c22d9ef7c19a742fcd024ff6e568526df8bfea8 (diff) | |
parent | ae305abfdb795b472b2b9d200bf3b11af00d7d1f (diff) |
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 3bf36c3700..be864ecab8 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) |