summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-03-29 06:21:03 (GMT)
committerDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-03-29 06:21:03 (GMT)
commit60039ad6f100c10c4e95a0caeeb46e3038272319 (patch)
treee71fa8effeb8a358501ed1a888362decde8fd12a /src/plugins
parent9cb2cae5d24000871070b3b952f2e833ff3a5f8e (diff)
downloadQt-60039ad6f100c10c4e95a0caeeb46e3038272319.zip
Qt-60039ad6f100c10c4e95a0caeeb46e3038272319.tar.gz
Qt-60039ad6f100c10c4e95a0caeeb46e3038272319.tar.bz2
QuickTime video widget: use widget palette for video background color.
Reviewed-by: Justin McPherson
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/mediaservices/qt7/qt7movievideowidget.mm3
1 files changed, 2 insertions, 1 deletions
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)