git-svn-id: svn://db.shs.com.ru/libs@22 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user