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

TrackSliderSlider: Use different constructor for QMouseEvent

This commit is contained in:
Jonas Kvinge 2022-02-05 18:54:00 +01:00
parent 53d5192477
commit 686eb2e786

View File

@ -72,7 +72,7 @@ void TrackSliderSlider::mousePressEvent(QMouseEvent *e) {
}
}
QMouseEvent new_event(e->type(), e->pos(), new_button, new_button, e->modifiers());
QMouseEvent new_event(e->type(), e->pos(), e->globalPosition(), new_button, new_button, e->modifiers());
QSlider::mousePressEvent(&new_event);
if (new_event.isAccepted()) {