git-svn-id: svn://db.shs.com.ru/libs@22 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-05-29 09:53:25 +00:00
parent 9ce51ed43a
commit 16dae8325e

View File

@@ -176,7 +176,9 @@ bool QCodeEdit::eventFilter(QObject * o, QEvent * e) {
if (o == textLines->viewport()) {
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease ||
e->type() == QEvent::MouseMove || e->type() == QEvent::MouseButtonDblClick) {
#if (QT_VERSION < 0x050000)
const_cast<QPoint&>(((QMouseEvent*)e)->pos()) = QPoint(0, ((QMouseEvent*)e)->pos().y());
#endif
QApplication::sendEvent(textCode->viewport(), e);
return true;
}