diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2016-11-12 14:38:17 +0200 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2016-12-19 18:57:59 +0000 |
commit | 04a3e74fd2a568db62c7d5eeaab497d02eb73759 (patch) | |
tree | 30e3e5e4a3aa07244d98165d826a625260a58f2b /src/virtualkeyboard/content/components/Keyboard.qml | |
parent | b87766345e7089670629b1c75e9c350846849dac (diff) |
Optimized QML related to shift state handling
Remove unnecessary QML bindings to optimize performance.
Task-number: QTBUG-57082
Change-Id: Ibda52c5ddcc564a7b92dbd7831afd885c344718d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/virtualkeyboard/content/components/Keyboard.qml')
-rw-r--r-- | src/virtualkeyboard/content/components/Keyboard.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/virtualkeyboard/content/components/Keyboard.qml b/src/virtualkeyboard/content/components/Keyboard.qml index 6956898f..f948f303 100644 --- a/src/virtualkeyboard/content/components/Keyboard.qml +++ b/src/virtualkeyboard/content/components/Keyboard.qml @@ -59,7 +59,6 @@ Item { return "main" } property bool active: Qt.inputMethod.visible - property bool uppercased: InputContext.shift property bool handwritingMode property bool fullScreenHandwritingMode property bool symbolMode @@ -635,7 +634,7 @@ Item { function click(key) { if (key && key.enabled) { if (!key.noKeyEvent) - InputContext.inputEngine.virtualKeyClick(key.key, keyboard.uppercased ? key.text.toUpperCase() : key.text, keyboard.uppercased ? Qt.ShiftModifier : 0) + InputContext.inputEngine.virtualKeyClick(key.key, InputContext.shift ? key.text.toUpperCase() : key.text, InputContext.shift ? Qt.ShiftModifier : 0) key.clicked() } } |