From cef7e2a69ee4d34e5abc1efbbac92cf34f176a53 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 9 Aug 2010 14:20:33 +0000 Subject: [PATCH] Fix free space bar rendering on mac. --- src/widgets/freespacebar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/freespacebar.cpp b/src/widgets/freespacebar.cpp index 1c4fc3bbf..519794914 100644 --- a/src/widgets/freespacebar.cpp +++ b/src/widgets/freespacebar.cpp @@ -65,7 +65,7 @@ void FreeSpaceBar::paintEvent(QPaintEvent*) { // Draw the reflection // Create the reflected pixmap - QPixmap reflection(reflection_rect.size()); + QImage reflection(reflection_rect.size(), QImage::Format_ARGB32_Premultiplied); reflection.fill(Qt::transparent); QPainter p(&reflection); @@ -91,7 +91,7 @@ void FreeSpaceBar::paintEvent(QPaintEvent*) { // Draw on the widget p.begin(this); DrawBar(&p, bar_rect); - p.drawPixmap(reflection_rect, reflection); + p.drawImage(reflection_rect, reflection); DrawText(&p, labels_rect); }