diff --git a/qad/widgets/qcodeedit.cpp b/qad/widgets/qcodeedit.cpp index 72592ef..fb02934 100644 --- a/qad/widgets/qcodeedit.cpp +++ b/qad/widgets/qcodeedit.cpp @@ -202,6 +202,8 @@ bool QCodeEdit::eventFilter(QObject * o, QEvent * e) { e->type() == QEvent::MouseMove || e->type() == QEvent::MouseButtonDblClick) { #if (QT_VERSION < 0x050000) const_cast(((QMouseEvent*)e)->pos()) = QPoint(0, ((QMouseEvent*)e)->pos().y()); +#else + const_cast(((QMouseEvent*)e)->localPos()) = QPointF(0, ((QMouseEvent*)e)->localPos().y()); #endif QApplication::sendEvent(textCode->viewport(), e); return true;