Commit 47d2146c authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix QWheelEvent::position() not available in Qt < 5.14

parent a4a3e1a2
Pipeline #74032 passed with stage
in 8 minutes and 33 seconds
......@@ -972,8 +972,11 @@ void RemapView::wheelEvent(QWheelEvent *event)
}
int change = event->angleDelta().y() > 0 ? -1 : 1;
int pos = qBound(0, m_position + change, m_duration - 1);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
if (event->position().y() < m_bottomView) {
#else
if (event->y() < m_bottomView) {
#endif
emit seekToPos(pos + m_inFrame, -1);
} else {
// Wheel on zoom bar, scroll
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment