mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
4fa19534a9
commit
2de814fec8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue