From 60039ad6f100c10c4e95a0caeeb46e3038272319 Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Mon, 29 Mar 2010 16:21:03 +1000 Subject: QuickTime video widget: use widget palette for video background color. Reviewed-by: Justin McPherson --- src/plugins/mediaservices/qt7/qt7movievideowidget.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/mediaservices/qt7/qt7movievideowidget.mm b/src/plugins/mediaservices/qt7/qt7movievideowidget.mm index c58d0a0..648d6b4 100644 --- a/src/plugins/mediaservices/qt7/qt7movievideowidget.mm +++ b/src/plugins/mediaservices/qt7/qt7movievideowidget.mm @@ -73,7 +73,8 @@ public: void initializeGL() { - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); + QColor bgColor = palette().color(QPalette::Background); + glClearColor(bgColor.redF(), bgColor.greenF(), bgColor.blueF(), bgColor.alphaF()); } void resizeGL(int w, int h) -- cgit v0.12