Utils: Pass unhandled FancyLineEdit key events

... to direct base class CompletingLineEdit, so CursorDown
gets properly handled.

Change-Id: I8d8d9ec911527d5862dd1ba13691eaaf547f4230
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-11-11 16:49:03 +01:00
parent 4dd0537d4b
commit 40c04a4fe4

View File

@@ -382,9 +382,9 @@ void FancyLineEdit::keyPressEvent(QKeyEvent *event)
else if (event == QKeySequence::SelectNextWord) else if (event == QKeySequence::SelectNextWord)
CamelCaseCursor::right(this, QTextCursor::KeepAnchor); CamelCaseCursor::right(this, QTextCursor::KeepAnchor);
else else
QLineEdit::keyPressEvent(event); CompletingLineEdit::keyPressEvent(event);
} else { } else {
QLineEdit::keyPressEvent(event); CompletingLineEdit::keyPressEvent(event);
} }
} }