From 02bbbc0ea911a70c86657b5dcd4400cc2049e231 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 15 Apr 2011 14:50:21 +0200 Subject: [PATCH] Black video background on windows --- src/videoareawidget.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/videoareawidget.cpp b/src/videoareawidget.cpp index 2b1c6d1..3cc5bd6 100644 --- a/src/videoareawidget.cpp +++ b/src/videoareawidget.cpp @@ -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); -- 2.39.5