1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-02 19:47:16 +01:00

TrackSliderSlider: Fix compile with Qt 5

This commit is contained in:
Jonas Kvinge 2022-02-05 19:06:58 +01:00
parent 817153b20b
commit ffef339ebd

View File

@ -72,7 +72,11 @@ void TrackSliderSlider::mousePressEvent(QMouseEvent *e) {
}
}
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
QMouseEvent new_event(e->type(), e->pos(), e->globalPosition(), new_button, new_button, e->modifiers());
#else
QMouseEvent new_event(e->type(), e->pos(), e->globalPos(), new_button, new_button, e->modifiers());
#endif
QSlider::mousePressEvent(&new_event);
if (new_event.isAccepted()) {