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 <mfbernardes@gmail.com>
This commit is contained in:
Murillo Bernardes 2018-06-26 06:17:00 +02:00 committed by Robert C. Helling
parent 4fa19534a9
commit 2de814fec8

View file

@ -509,6 +509,9 @@ bool DiveLocationLineEdit::eventFilter(QObject*, QEvent *e)
return true;
}
}
else if (e->type() == QEvent::InputMethod) {
this->inputMethodEvent(static_cast<QInputMethodEvent *>(e));
}
return false;
}