aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2017-02-01 20:45:13 +0100
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>2017-02-01 20:45:13 +0100
commit18f37cf7410beb698855a38a1af458d51d64e3fe (patch)
treeeff75ee12b02288f7cf28dba20b684a1dbb81ce7 /tests/auto/inputpanel/data/inputpanel/inputpanel.qml
parente967e50805e50decd809236da314127cd425ef0b (diff)
parentad44e00c0d01dea15358b98865623e8f11f295a8 (diff)
Merge dev into 5.9v5.9.0-alpha1
Diffstat (limited to 'tests/auto/inputpanel/data/inputpanel/inputpanel.qml')
-rw-r--r--tests/auto/inputpanel/data/inputpanel/inputpanel.qml20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
index 58264edb..d1b3cae6 100644
--- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
+++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
@@ -29,7 +29,7 @@
import QtTest 1.0
import QtQuick 2.0
-import QtQuick.VirtualKeyboard 2.1
+import QtQuick.VirtualKeyboard 2.2
import QtQuick.VirtualKeyboard.Settings 2.2
import "handwriting.js" as Handwriting
import "utils.js" as Utils
@@ -67,9 +67,14 @@ InputPanel {
naviationHighlight.widthAnimation.running ||
naviationHighlight.heightAnimation.running
readonly property var wordCandidateView: Utils.findChildByProperty(keyboard, "objectName", "wordCandidateView", null)
- readonly property var selectionControl: Utils.findChild(inputPanel, null, function(obj, param) { return obj.hasOwnProperty("handleIsMoving")})
+ readonly property var shadowInputControl: Utils.findChildByProperty(keyboard, "objectName", "shadowInputControl", null)
+ readonly property var shadowInput: Utils.findChildByProperty(keyboard, "objectName", "shadowInput", null)
+ readonly property var selectionControl: Utils.findChildByProperty(inputPanel, "objectName", "selectionControl", null)
readonly property var anchorHandle: selectionControl.children[0]
readonly property var cursorHandle: selectionControl.children[1]
+ readonly property var fullScreenModeSelectionControl: Utils.findChildByProperty(inputPanel, "objectName", "fullScreenModeSelectionControl", null)
+ readonly property var fullScreenModeAnchorHandle: fullScreenModeSelectionControl.children[0]
+ readonly property var fullScreenModeCursorHandle: fullScreenModeSelectionControl.children[1]
readonly property bool wordCandidateListVisibleHint: InputContext.inputEngine.wordCandidateListVisibleHint
readonly property bool keyboardLayoutsAvailable: keyboard.availableLocaleIndices.length > 0 && keyboard.availableLocaleIndices.indexOf(-1) === -1
property alias keyboardLayoutsAvailableSpy: keyboardLayoutsAvailableSpy
@@ -85,6 +90,7 @@ InputPanel {
property alias wordCandidateListChangedSpy: wordCandidateListChangedSpy
property alias wordCandidateListVisibleSpy: wordCandidateListVisibleSpy
property alias shiftStateSpy: shiftStateSpy
+ property alias shadowInputControlVisibleSpy: shadowInputControlVisibleSpy
signal inputMethodResult(var text)
@@ -176,6 +182,12 @@ InputPanel {
signalName: "onShiftChanged"
}
+ SignalSpy {
+ id: shadowInputControlVisibleSpy
+ target: shadowInputControl
+ signalName: "onVisibleChanged"
+ }
+
function findChildByProperty(parent, propertyName, propertyValue, compareCb) {
var obj = null
if (parent === null)
@@ -226,6 +238,10 @@ InputPanel {
VirtualKeyboardSettings.wordCandidateList.autoCommitWord = wclAutoCommitWord
}
+ function setFullScreenMode(fullScreenMode) {
+ VirtualKeyboardSettings.fullScreenMode = fullScreenMode
+ }
+
function mapInputMode(inputModeName) {
if (inputModeName === "Latin")
return InputEngine.Latin