git-svn-id: svn://db.shs.com.ru/libs@21 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -165,6 +165,13 @@ QChar QCodeEdit::pairChar(QChar c) {
|
||||
|
||||
|
||||
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 (o == textLines->viewport()) {
|
||||
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonRelease ||
|
||||
|
||||
Reference in New Issue
Block a user