git-svn-id: svn://db.shs.com.ru/libs@298 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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<QPoint&>(((QMouseEvent*)e)->pos()) = QPoint(0, ((QMouseEvent*)e)->pos().y());
|
||||
#else
|
||||
const_cast<QPointF&>(((QMouseEvent*)e)->localPos()) = QPointF(0, ((QMouseEvent*)e)->localPos().y());
|
||||
#endif
|
||||
QApplication::sendEvent(textCode->viewport(), e);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user