aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2018-09-24 11:12:22 +0300
committerMitch Curtis <mitch.curtis@qt.io>2018-09-24 08:20:41 +0000
commit8b3a4d6f305955171a595ad93460346c58df51d7 (patch)
tree023249243f892062b4ccd6aabedd227bd3946a17
parent50d1d95af5cb271285abb4375e63ca28cbadd77a (diff)
Fix word candidate list auto hiding
Stop auto hide timer when the word candidate list is not empty. Constantly failing CI bot revealed this error: agent:2018/09/24 07:50:50 build.go:193: FAIL! : inputpanel::tst_plugin::test_zhuyinInputMethod(row 17) 'Expected wordCandidateView to have a currentItem, but it's null. Its property values at the time of failure are: x=0 y=-9.478976 width=400 height=13 count=0 flicking=false moving=false visible=false' returned FALSE. () Task-number: QTBUG-62518 Task-number: QTBUG-61279 Task-number: QTQAINFRA-2226 Change-Id: I775aa834da9809008a34fc760e994610ad6e95a8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/virtualkeyboard/content/components/Keyboard.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml
index 012ec48a..47e6d9cb 100644
--- a/src/virtualkeyboard/content/components/Keyboard.qml
+++ b/src/virtualkeyboard/content/components/Keyboard.qml
@@ -619,6 +619,8 @@ Item {
var empty = wordCandidateView.model.count === 0
if (empty)
wordCandidateViewAutoHideTimer.restart()
+ else
+ wordCandidateViewAutoHideTimer.stop()
wordCandidateView.empty = empty
}
}