summaryrefslogtreecommitdiffstats
path: root/demos/qtdemo
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-06-21 13:48:39 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-06-21 13:48:39 (GMT)
commit02c83c2adf0513041d9a3866d4e589ad79d61bda (patch)
treec4f55089c85b6cc10cd39c734b34a7b78b544cd6 /demos/qtdemo
parent2fdac06f820f2362d3ca83ab6d73ed874d903098 (diff)
parentb5af8fbbdc26fa50f40dad2c159b6b64827fa431 (diff)
downloadQt-02c83c2adf0513041d9a3866d4e589ad79d61bda.zip
Qt-02c83c2adf0513041d9a3866d4e589ad79d61bda.tar.gz
Qt-02c83c2adf0513041d9a3866d4e589ad79d61bda.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Avoid printing a warning Only steal hover events when enabled, in QtDemo's qml integration Allow things that load SameGame to disable the Quit button Seems to fix the keyboard focus confusion Fix test ListView doc improvements and examples clean up Doc fixes Fix event forwarding in QDeclarativeFlickable. doc: improve Repeater model docs. doc: couple more performance tips. BorderImage is not updated when border values change XmlListModel: Don't lock while doing the slow bit. Auto test for QTBUG-11507 Properly update childrenRect for position changes and shrinking.
Diffstat (limited to 'demos/qtdemo')
-rw-r--r--demos/qtdemo/qmlShell.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/qtdemo/qmlShell.qml b/demos/qtdemo/qmlShell.qml
index b1ee79a..5c5f96c 100644
--- a/demos/qtdemo/qmlShell.qml
+++ b/demos/qtdemo/qmlShell.qml
@@ -73,12 +73,17 @@ 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;
- }
+ if(loader.item.inAnotherDemo != undefined)
+ loader.item.inAnotherDemo = true;
+ }}
}
Rectangle{ id: frame
@@ -139,7 +144,7 @@ Item {
MouseArea{
z: 8
enabled: main.show
- hoverEnabled: true //To steal focus from the buttons
+ hoverEnabled: main.show //To steal focus from the buttons
anchors.fill: parent
onClicked: main.show=false;
}