1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-05 14:28:40 +01:00

Fix free space bar rendering on mac.

This commit is contained in:
John Maguire 2010-08-09 14:20:33 +00:00
parent b1a96fd54d
commit cef7e2a69e

View File

@ -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);
}