From 853c59a7e0a2702ee3d1533ee8468b96caa87e17 Mon Sep 17 00:00:00 2001 From: Luke Memet Date: Sat, 15 Feb 2025 16:04:15 -0500 Subject: [PATCH] build fixes --- src/gui/macosshiftclickhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/macosshiftclickhandler.cpp b/src/gui/macosshiftclickhandler.cpp index f2a8bdcd0..5057fd1fe 100644 --- a/src/gui/macosshiftclickhandler.cpp +++ b/src/gui/macosshiftclickhandler.cpp @@ -46,7 +46,7 @@ bool MacOSShiftClickHandler::eventFilter(QObject *watched, QEvent *event) if (mouseEvent->button() != Qt::LeftButton) return false; - const QModelIndex clickedIndex = m_treeView->indexAt(mouseEvent->position()); + const QModelIndex clickedIndex = m_treeView->indexAt(mouseEvent->position().toPoint()); if (!clickedIndex.isValid()) return false; @@ -69,5 +69,5 @@ bool MacOSShiftClickHandler::eventFilter(QObject *watched, QEvent *event) m_lastClickedIndex = clickedIndex; } - return QObject::eventFilter(obj, event); + return QObject::eventFilter(watched, event); }