From: unknown Date: Fri, 15 Apr 2011 12:50:21 +0000 (+0200) Subject: Black video background on windows X-Git-Tag: 1.4.2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=02bbbc0ea911a70c86657b5dcd4400cc2049e231;p=minitube Black video background on windows --- 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);