summaryrefslogtreecommitdiffstats
path: root/examples/declarative/text
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-06-03 06:27:47 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-06-03 06:53:11 (GMT)
commit939375996496a55a1bb424d6a328f47d2224ed51 (patch)
treee196085fb599e38fe6a19491500c33f8b9119a8c /examples/declarative/text
parent26d65a844b20a0056820c15188532b3895a3e091 (diff)
downloadQt-939375996496a55a1bb424d6a328f47d2224ed51.zip
Qt-939375996496a55a1bb424d6a328f47d2224ed51.tar.gz
Qt-939375996496a55a1bb424d6a328f47d2224ed51.tar.bz2
Improve input panel handling in declarative demos and examples
Task-number: QTBUG-11157 Reviewed-by: Warwick Allison
Diffstat (limited to 'examples/declarative/text')
-rw-r--r--examples/declarative/text/edit/edit.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/declarative/text/edit/edit.qml b/examples/declarative/text/edit/edit.qml
index 0be42e9..4668ab2 100644
--- a/examples/declarative/text/edit/edit.qml
+++ b/examples/declarative/text/edit/edit.qml
@@ -121,6 +121,9 @@ Rectangle {
onClicked: {
if (editor.state == "") {
edit.cursorPosition = edit.positionAt(mouse.x+x,mouse.y+y);
+ if (!edit.focus)
+ edit.focus = true;
+ edit.openSoftwareInputPanel();
}
}
function hitHandle(h,x,y) { return x>=h.x+flick.contentX && x<h.x+flick.contentX+h.width && y>=h.y+flick.contentY && y<h.y+flick.contentY+h.height }