1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Fix track slider popup on Mac.

This commit is contained in:
John Maguire 2010-12-27 17:41:59 +00:00
parent fbbd4d4b27
commit 72da76a71a

View File

@ -25,9 +25,13 @@ TrackSliderPopup::TrackSliderPopup(QWidget* parent)
setWindowFlags(Qt::ToolTip | Qt::FramelessWindowHint |
Qt::WindowStaysOnTopHint);
setAttribute(Qt::WA_NoSystemBackground);
setAttribute(Qt::WA_OpaquePaintEvent);
setAttribute(Qt::WA_TranslucentBackground);
#ifndef Q_OS_DARWIN
// Paints the whole rect with a white background on Mac.
setAttribute(Qt::WA_OpaquePaintEvent);
// Creates flicker on Mac.
setAttribute(Qt::WA_TransparentForMouseEvents);
#endif
setMouseTracking(true);
visibility_timer_->setSingleShot(true);