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
1 changed files with 5 additions and 1 deletions

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