From f21b072d05f082190d96b60f191e9aaca9ca7e70 Mon Sep 17 00:00:00 2001 From: Flavio Date: Sun, 1 Jan 2012 17:07:24 +0100 Subject: [PATCH] Windows background color fixes --- src/loadingwidget.cpp | 2 +- src/main.cpp | 7 ------- src/videoareawidget.cpp | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/loadingwidget.cpp b/src/loadingwidget.cpp index a1c81dd..03f5fd3 100644 --- a/src/loadingwidget.cpp +++ b/src/loadingwidget.cpp @@ -3,7 +3,7 @@ LoadingWidget::LoadingWidget(QWidget *parent) : QWidget(parent) { QPalette p = palette(); - p.setBrush(QPalette::Window, Qt::black); + p.setBrush(backgroundRole(), Qt::black); p.setBrush(QPalette::Text, Qt::white); setPalette(p); diff --git a/src/main.cpp b/src/main.cpp index c114f7c..9b2e176 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,9 +7,6 @@ #include "mac_startup.h" #include "macfullscreen.h" #endif -#ifdef APP_WIN -#include "local/win/qtwin.h" -#endif #include "iconloader/qticonloader.h" int main(int argc, char **argv) { @@ -95,10 +92,6 @@ int main(int argc, char **argv) { #endif #ifdef APP_WIN - if (QtWin::isCompositionEnabled()) { - QtWin::extendFrameIntoClientArea(&mainWin); - mainWin.setContentsMargins(0, 0, 0, 0); - } app.setFont(QFont("Segoe UI", 9)); #endif diff --git a/src/videoareawidget.cpp b/src/videoareawidget.cpp index 7411b22..a8432ac 100644 --- a/src/videoareawidget.cpp +++ b/src/videoareawidget.cpp @@ -11,7 +11,6 @@ VideoAreaWidget::VideoAreaWidget(QWidget *parent) : QWidget(parent) { p.setBrush(QPalette::Window, Qt::black); setPalette(p); setAutoFillBackground(true); - setStyleSheet("background:black"); #endif // hidden message widget -- 2.39.5