From 9e90f66ca0a49d248686ce6ea42b9b09ba602e41 Mon Sep 17 00:00:00 2001 From: IChooseYou Date: Mon, 16 Feb 2026 09:12:17 -0700 Subject: [PATCH] fix: Qt5 compat - use pos() instead of position() for QMouseEvent --- src/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editor.cpp b/src/editor.cpp index ddf4a45..af50b0a 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -1401,7 +1401,11 @@ bool RcxEditor::eventFilter(QObject* obj, QEvent* event) { auto* me = static_cast(event); int margin0Width = (int)m_sci->SendScintilla( QsciScintillaBase::SCI_GETMARGINWIDTHN, 0UL, 0L); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) if ((int)me->position().x() < margin0Width) { +#else + if ((int)me->pos().x() < margin0Width) { +#endif m_relativeOffsets = !m_relativeOffsets; reformatMargins(); return true;