Fix track slider popup on Mac.
This commit is contained in:
parent
fbbd4d4b27
commit
72da76a71a
|
@ -25,9 +25,13 @@ TrackSliderPopup::TrackSliderPopup(QWidget* parent)
|
||||||
setWindowFlags(Qt::ToolTip | Qt::FramelessWindowHint |
|
setWindowFlags(Qt::ToolTip | Qt::FramelessWindowHint |
|
||||||
Qt::WindowStaysOnTopHint);
|
Qt::WindowStaysOnTopHint);
|
||||||
setAttribute(Qt::WA_NoSystemBackground);
|
setAttribute(Qt::WA_NoSystemBackground);
|
||||||
setAttribute(Qt::WA_OpaquePaintEvent);
|
|
||||||
setAttribute(Qt::WA_TranslucentBackground);
|
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);
|
setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||||
|
#endif
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
|
|
||||||
visibility_timer_->setSingleShot(true);
|
visibility_timer_->setSingleShot(true);
|
||||||
|
|
Loading…
Reference in New Issue