From 2f3c8f79d2230a8217c29b6e909bd8418ede24e8 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Wed, 12 Nov 2014 20:47:23 +0100 Subject: example, touchinteraction: use forceActiveFocus to gain focus Use forceActiveFocus to gain focus when the user clicks on a note. Just setting focus on an item is not enough to gain keyboard focus. Change-Id: Ia4a68a17df0df4b321cc6edb646b39c36167e982 Reviewed-by: J-P Nurmi Reviewed-by: Caroline Chao --- examples/quick/touchinteraction/flickable/content/Panel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/quick') diff --git a/examples/quick/touchinteraction/flickable/content/Panel.qml b/examples/quick/touchinteraction/flickable/content/Panel.qml index a144c347e1..b2926f8098 100644 --- a/examples/quick/touchinteraction/flickable/content/Panel.qml +++ b/examples/quick/touchinteraction/flickable/content/Panel.qml @@ -116,7 +116,7 @@ Component { drag.maximumY: page.height - 80 drag.minimumX: 100 drag.maximumX: page.width - 140 - onClicked: { myText.focus = true; Qt.inputMethod.show(); } + onClicked: myText.forceActiveFocus() } } } -- cgit v1.2.3 From d0b5332dcc3cbb13eab32f7dc8179df7ae2a2cc1 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 26 Nov 2014 09:59:11 +0100 Subject: Fix permissions of files Change-Id: I22958892d846da348325ba608084f8d9a05473d4 Reviewed-by: Simon Hausmann --- examples/quick/demos/samegame/content/samegame.js | 0 examples/quick/particles/images/backgroundLeaves.jpg | Bin .../tutorials/samegame/samegame4/highscores/score_data.xml | 0 .../tutorials/samegame/samegame4/highscores/score_style.xsl | 0 .../tutorials/samegame/samegame4/highscores/scores.php | 0 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 examples/quick/demos/samegame/content/samegame.js mode change 100755 => 100644 examples/quick/particles/images/backgroundLeaves.jpg mode change 100755 => 100644 examples/quick/tutorials/samegame/samegame4/highscores/score_data.xml mode change 100755 => 100644 examples/quick/tutorials/samegame/samegame4/highscores/score_style.xsl mode change 100755 => 100644 examples/quick/tutorials/samegame/samegame4/highscores/scores.php (limited to 'examples/quick') diff --git a/examples/quick/demos/samegame/content/samegame.js b/examples/quick/demos/samegame/content/samegame.js old mode 100755 new mode 100644 diff --git a/examples/quick/particles/images/backgroundLeaves.jpg b/examples/quick/particles/images/backgroundLeaves.jpg old mode 100755 new mode 100644 diff --git a/examples/quick/tutorials/samegame/samegame4/highscores/score_data.xml b/examples/quick/tutorials/samegame/samegame4/highscores/score_data.xml old mode 100755 new mode 100644 diff --git a/examples/quick/tutorials/samegame/samegame4/highscores/score_style.xsl b/examples/quick/tutorials/samegame/samegame4/highscores/score_style.xsl old mode 100755 new mode 100644 diff --git a/examples/quick/tutorials/samegame/samegame4/highscores/scores.php b/examples/quick/tutorials/samegame/samegame4/highscores/scores.php old mode 100755 new mode 100644 -- cgit v1.2.3