diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-13 15:29:45 +0300 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2015-10-15 06:22:15 +0000 |
commit | 3fc2aa83b811374c3c23d08c59db5cb99c5758af (patch) | |
tree | 06e2f27f3d3f45b66ebd09b1862c0ca8d0736c61 /src/virtualkeyboard/platforminputcontext.h | |
parent | dd3cfffa1925df148ea2cce496039807f3463539 (diff) |
Fix input panel visibility
If showInputPanel() is called before setting focus to ImEnabled input
control, the visibility information is lost and the input panel is not
shown until the user presses the input control second time.
Instead, the last visibility state is always stored in the input
context and the input panel visibility is updated according to latest
state.
Change-Id: I479925a7c399068ed0b3cba14aa0b405e590ea6e
Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/platforminputcontext.h')
-rw-r--r-- | src/virtualkeyboard/platforminputcontext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtualkeyboard/platforminputcontext.h b/src/virtualkeyboard/platforminputcontext.h index 2dc0183d..970e9e89 100644 --- a/src/virtualkeyboard/platforminputcontext.h +++ b/src/virtualkeyboard/platforminputcontext.h @@ -70,6 +70,7 @@ protected: private slots: void keyboardRectangleChanged(); + void updateInputPanelVisible(); private: friend class DeclarativeInputContext; @@ -79,6 +80,7 @@ private: QLocale m_locale; Qt::LayoutDirection m_inputDirection; QEvent *m_filterEvent; + bool m_visible; }; #endif |