aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2012-08-22 00:09:55 +0300
committerQt by Nokia <qt-info@nokia.com>2012-08-22 04:05:05 +0200
commitf247405bc04caf73f54458a70b37d0434f9eacdd (patch)
tree4a91474b92110bd348d529c97806159d91c997db /examples
parente75a96a920fb867fbe698e1aeb5a292a0ea35b8b (diff)
Remove deprecated openSoftwareInputPanel function calls from the declarative examples
Change-Id: I458bb1ed08f587b13a52a2615ba4d7966363a12b Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml2
-rw-r--r--examples/quick/customitems/searchbox/SearchBox.qml2
-rw-r--r--examples/quick/touchinteraction/flickable/content/Panel.qml2
-rw-r--r--examples/tutorials/samegame/samegame4/content/Dialog.qml2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml
index b22a025b6b..9d08de575f 100644
--- a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml
+++ b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml
@@ -80,6 +80,6 @@ Item {
MouseArea {
anchors { fill: parent; leftMargin: -20; topMargin: -20; rightMargin: -20; bottomMargin: -20 }
- onClicked: { textInput.forceActiveFocus(); textInput.openSoftwareInputPanel(); }
+ onClicked: { textInput.forceActiveFocus(); Qt.inputMethod.show(); }
}
}
diff --git a/examples/quick/customitems/searchbox/SearchBox.qml b/examples/quick/customitems/searchbox/SearchBox.qml
index 6f6f486412..e67400e4d2 100644
--- a/examples/quick/customitems/searchbox/SearchBox.qml
+++ b/examples/quick/customitems/searchbox/SearchBox.qml
@@ -68,7 +68,7 @@ FocusScope {
MouseArea {
anchors.fill: parent
- onClicked: { focusScope.focus = true; textInput.openSoftwareInputPanel(); }
+ onClicked: { focusScope.focus = true; Qt.inputMethod.show(); }
}
TextInput {
diff --git a/examples/quick/touchinteraction/flickable/content/Panel.qml b/examples/quick/touchinteraction/flickable/content/Panel.qml
index 3a402bbc06..c3cf9e27d9 100644
--- a/examples/quick/touchinteraction/flickable/content/Panel.qml
+++ b/examples/quick/touchinteraction/flickable/content/Panel.qml
@@ -118,7 +118,7 @@ Component {
drag.maximumY: page.height - 80
drag.minimumX: 100
drag.maximumX: page.width - 140
- onClicked: { myText.focus = true; myText.openSoftwareInputPanel(); }
+ onClicked: { myText.focus = true; Qt.inputMethod.show(); }
}
}
}
diff --git a/examples/tutorials/samegame/samegame4/content/Dialog.qml b/examples/tutorials/samegame/samegame4/content/Dialog.qml
index 984b3ddb6a..a9a3560a77 100644
--- a/examples/tutorials/samegame/samegame4/content/Dialog.qml
+++ b/examples/tutorials/samegame/samegame4/content/Dialog.qml
@@ -96,7 +96,7 @@ Rectangle {
onClicked: {
if (textInput.text == "" && textInput.opacity > 0)
- textInput.openSoftwareInputPanel();
+ Qt.inputMethod.show();
else
hide();
}