Remove deprecated openSoftwareInputPanel function calls from the declarative examples
authorJoona Petrell <joona.t.petrell@nokia.com>
Tue, 21 Aug 2012 21:09:55 +0000 (00:09 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Aug 2012 02:05:05 +0000 (04:05 +0200)
Change-Id: I458bb1ed08f587b13a52a2615ba4d7966363a12b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml
examples/quick/customitems/searchbox/SearchBox.qml
examples/quick/touchinteraction/flickable/content/Panel.qml
examples/tutorials/samegame/samegame4/content/Dialog.qml

index b22a025..9d08de5 100644 (file)
@@ -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(); }
     }
 }
index 6f6f486..e67400e 100644 (file)
@@ -68,7 +68,7 @@ FocusScope {
 
     MouseArea { 
         anchors.fill: parent
-        onClicked: { focusScope.focus = true; textInput.openSoftwareInputPanel(); } 
+        onClicked: { focusScope.focus = true; Qt.inputMethod.show(); }
     }
 
     TextInput {
index 3a402bb..c3cf9e2 100644 (file)
@@ -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(); }
                         }
                     }
                 }
index 984b3dd..a9a3560 100644 (file)
@@ -96,7 +96,7 @@ Rectangle {
 
         onClicked:  {
             if (textInput.text == "" && textInput.opacity > 0)
-                textInput.openSoftwareInputPanel();
+                Qt.inputMethod.show();
             else
                 hide();
         }