mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: Qt5 compat - use pos() instead of position() for QMouseEvent
This commit is contained in:
@@ -1401,7 +1401,11 @@ bool RcxEditor::eventFilter(QObject* obj, QEvent* event) {
|
||||
auto* me = static_cast<QMouseEvent*>(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;
|
||||
|
||||
Reference in New Issue
Block a user