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

This commit is contained in:
2015-05-28 18:18:13 +00:00
parent 78db1b9717
commit 9ce51ed43a

View File

@@ -165,6 +165,13 @@ QChar QCodeEdit::pairChar(QChar c) {
bool QCodeEdit::eventFilter(QObject * o, QEvent * e) { bool QCodeEdit::eventFilter(QObject * o, QEvent * e) {
if (e->type() == QEvent::Destroy) {
completer.removeEventFilter(this);
textCode->removeEventFilter(this);
textCode->viewport()->removeEventFilter(this);
textLines->viewport()->removeEventFilter(this);
return QWidget::eventFilter(o, e);
}
if (textLines) { if (textLines) {
if (o == textLines->viewport()) { if (o == textLines->viewport()) {
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease || if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease ||