Commit 471508bd authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

[Qt6] Port one missed event->y()

parent c21df9c2
......@@ -853,7 +853,7 @@ void RemapView::mousePressEvent(QMouseEvent *event)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (event->y() < 2 * m_lineHeight && event->y() > m_lineHeight) {
#else
if (event->position().y() < 2 * m_lineHeight && event->y() > m_lineHeight) {
if (event->position().y() < 2 * m_lineHeight && event->position().y() > m_lineHeight) {
#endif
std::pair<int, int> keyframe = getClosestKeyframe(pos + m_inFrame);
if (keyframe.first > -1 && qAbs(keyframe.second - (pos + m_inFrame)) * m_scale * m_zoomFactor <= m_lineHeight / 2) {
......
Supports Markdown
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