From 2de814fec83a2baf6d0fbaba38a45e094b01fffc Mon Sep 17 00:00:00 2001 From: Murillo Bernardes Date: Tue, 26 Jun 2018 06:17:00 +0200 Subject: desktop: fix multi-keystroke input on location When the tooltip is hidden QInputMethodEvent is handled by QLineEdit and works properly. When the tooltip is visible DiveLocationListView gains focus and receives QInputMethodEvent, without handling them properly. This patch just forwards the event back to the QLineEdit object. Fix #1405 Signed-off-by: Murillo Bernardes --- desktop-widgets/locationinformation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index fea0b93de..1216bde89 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -509,6 +509,9 @@ bool DiveLocationLineEdit::eventFilter(QObject*, QEvent *e) return true; } } + else if (e->type() == QEvent::InputMethod) { + this->inputMethodEvent(static_cast(e)); + } return false; } -- cgit v1.2.3-70-g09d2