]> git.sur5r.net Git - minitube/commitdiff
Black video background on windows
authorunknown <flavio@.(none)>
Fri, 15 Apr 2011 12:50:21 +0000 (14:50 +0200)
committerunknown <flavio@.(none)>
Fri, 15 Apr 2011 12:50:21 +0000 (14:50 +0200)
src/videoareawidget.cpp

index 2b1c6d1f2dde423020875e4d404e82a2067bb5c7..3cc5bd6ae61d9d7bfd4270102057ba88256a92a3 100644 (file)
@@ -5,7 +5,14 @@ VideoAreaWidget::VideoAreaWidget(QWidget *parent) : QWidget(parent) {
     QBoxLayout *vLayout = new QVBoxLayout(this);
     vLayout->setMargin(0);
     vLayout->setSpacing(0);
-    
+
+#ifdef APP_WIN
+    QPalette p = palette();
+    p.setBrush(QPalette::Window, Qt::black);
+    setPalette(p);
+    setAutoFillBackground(true);
+#endif
+
     // hidden message widget
     messageLabel = new QLabel(this);
     messageLabel->setOpenExternalLinks(true);