diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-06-21 10:49:11 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-06-21 10:49:11 (GMT) |
commit | 3ea12bbbf794ceb431b182d79267ac2826f25c64 (patch) | |
tree | f1449af2103e143d0bd5ae3c0c15a2ff81e4dbcf /demos | |
parent | f0c02624791441d45cc8b2f084505cfc5add7237 (diff) | |
download | Qt-3ea12bbbf794ceb431b182d79267ac2826f25c64.zip Qt-3ea12bbbf794ceb431b182d79267ac2826f25c64.tar.gz Qt-3ea12bbbf794ceb431b182d79267ac2826f25c64.tar.bz2 |
Seems to fix the keyboard focus confusion
Task-number: QTBUG-11411
Diffstat (limited to 'demos')
-rw-r--r-- | demos/qtdemo/qmlShell.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/qtdemo/qmlShell.qml b/demos/qtdemo/qmlShell.qml index b1ee79a..141531f 100644 --- a/demos/qtdemo/qmlShell.qml +++ b/demos/qtdemo/qmlShell.qml @@ -73,12 +73,15 @@ Item { clip: true source: qmlFile anchors.centerIn: parent - onStatusChanged: if(status == Loader.Ready) { + onStatusChanged:{ + if(status == Loader.Null) { + loader.focus = false;//fixes QTBUG11411, probably because the focusScope needs to gain focus to focus the right child + }else if(status == Loader.Ready) { if(loader.item.width > 640) loader.item.width = 640; if(loader.item.height > 480) loader.item.height = 480; - } + }} } Rectangle{ id: frame |