diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-12-13 12:46:53 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-12-13 12:46:53 +0100 |
commit | dfa9cb6379adbd7281f3c876ec224de0a735d46f (patch) | |
tree | a6a0d1d2c9e501619386e796e2d7677480dc2fec /src/virtualkeyboard/content/components/WordCandidatePopupList.qml | |
parent | 0f1365cb23ba20520a75f64abddaf81df7677250 (diff) | |
parent | 459ec87b0abdd476d415946ed07c8490c10b97f0 (diff) |
Merge remote-tracking branch 'origin/5.14.0' into 5.14
Change-Id: I41e5655ff707faecd8f6c0d3d5dc17bdd3dad0c7
Diffstat (limited to 'src/virtualkeyboard/content/components/WordCandidatePopupList.qml')
-rw-r--r-- | src/virtualkeyboard/content/components/WordCandidatePopupList.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/virtualkeyboard/content/components/WordCandidatePopupList.qml b/src/virtualkeyboard/content/components/WordCandidatePopupList.qml index e255142a..5790bc74 100644 --- a/src/virtualkeyboard/content/components/WordCandidatePopupList.qml +++ b/src/virtualkeyboard/content/components/WordCandidatePopupList.qml @@ -28,6 +28,8 @@ ****************************************************************************/ import QtQuick 2.0 +// Deliberately imported after QtQuick to avoid missing restoreMode property in Binding. Fix in Qt 6. +import QtQml 2.14 import QtQuick.VirtualKeyboard 2.3 PopupList { @@ -55,12 +57,14 @@ PopupList { (wordCandidatePopupList.currentItem.hasOwnProperty("cursorAnchor") ? wordCandidatePopupList.currentItem.cursorAnchor : wordCandidatePopupList.currentItem.width) : 0)) when: wordCandidatePopupList.visible + restoreMode: Binding.RestoreBinding } Binding { target: wordCandidatePopupList property: "y" value: Math.round(wordCandidatePopupList.flipVertical ? Qt.inputMethod.cursorRectangle.y - wordCandidatePopupList.height : Qt.inputMethod.cursorRectangle.y + Qt.inputMethod.cursorRectangle.height) when: wordCandidatePopupList.visible + restoreMode: Binding.RestoreBinding } model: enabled ? InputContext.inputEngine.wordCandidateListModel : null |