diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-11-05 01:19:05 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-11-05 01:19:05 (GMT) |
commit | f49aa13a1bb59eaebdb958305f479dc6e7c8e857 (patch) | |
tree | 33ba426fda56da2a3485109b39373e62237a7ca4 | |
parent | 3b8695c205c045f93349c812bf5cbc1db9a6d8ea (diff) | |
download | Qt-f49aa13a1bb59eaebdb958305f479dc6e7c8e857.zip Qt-f49aa13a1bb59eaebdb958305f479dc6e7c8e857.tar.gz Qt-f49aa13a1bb59eaebdb958305f479dc6e7c8e857.tar.bz2 |
Fix samegame text input focus
The real problem is QTBUG-15047, but by implementing SameGame in a
different way it gets worked around very nicely.
Task-number: QTBUG-14716
-rw-r--r-- | demos/declarative/samegame/samegame.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demos/declarative/samegame/samegame.qml b/demos/declarative/samegame/samegame.qml index b66c5a6..ab49c04 100644 --- a/demos/declarative/samegame/samegame.qml +++ b/demos/declarative/samegame/samegame.qml @@ -92,9 +92,7 @@ Rectangle { enabled: nameInputDialog.initialWidth != 0 } - onOpened: nameInputText.focus = true; onClosed: { - nameInputText.focus = false; if (nameInputText.text != "") Logic.saveHighScore(nameInputText.text); } @@ -116,7 +114,7 @@ Rectangle { TextInput { id: nameInputText anchors { verticalCenter: parent.verticalCenter; left: dialogText.right } - focus: false + focus: visible autoScroll: false maximumLength: 24 onTextChanged: { |