diff options
Diffstat (limited to 'examples/declarative/toys/dynamicscene/qml/dynamicscene')
5 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/toys/dynamicscene/qml/dynamicscene/PaletteItem.qml b/examples/declarative/toys/dynamicscene/qml/dynamicscene/PaletteItem.qml index 68d3119b..baff5b12 100644 --- a/examples/declarative/toys/dynamicscene/qml/dynamicscene/PaletteItem.qml +++ b/examples/declarative/toys/dynamicscene/qml/dynamicscene/PaletteItem.qml @@ -49,7 +49,7 @@ Image { source: image - MouseArea { + MouseArea { anchors.fill: parent onPressed: Code.startDrag(mouse); diff --git a/examples/declarative/toys/dynamicscene/qml/dynamicscene/PerspectiveItem.qml b/examples/declarative/toys/dynamicscene/qml/dynamicscene/PerspectiveItem.qml index 8ac639d8..f9487feb 100644 --- a/examples/declarative/toys/dynamicscene/qml/dynamicscene/PerspectiveItem.qml +++ b/examples/declarative/toys/dynamicscene/qml/dynamicscene/PerspectiveItem.qml @@ -44,9 +44,9 @@ Image { id: rootItem property bool created: false - property string image + property string image - property double scaledBottom: y + (height + height*scale) / 2 + property double scaledBottom: y + (height + height*scale) / 2 property bool onLand: scaledBottom > window.height / 2 source: image diff --git a/examples/declarative/toys/dynamicscene/qml/dynamicscene/Sun.qml b/examples/declarative/toys/dynamicscene/qml/dynamicscene/Sun.qml index 84c34dc3..d6921387 100644 --- a/examples/declarative/toys/dynamicscene/qml/dynamicscene/Sun.qml +++ b/examples/declarative/toys/dynamicscene/qml/dynamicscene/Sun.qml @@ -69,7 +69,7 @@ Image { onCreatedChanged: { if (created) { - sun.z = 1; // above the sky but below the ground layer + sun.z = 1; // above the sky but below the ground layer window.activeSuns++; } else { window.activeSuns--; diff --git a/examples/declarative/toys/dynamicscene/qml/dynamicscene/dynamicscene.qml b/examples/declarative/toys/dynamicscene/qml/dynamicscene/dynamicscene.qml index 775661b2..bb8347b0 100644 --- a/examples/declarative/toys/dynamicscene/qml/dynamicscene/dynamicscene.qml +++ b/examples/declarative/toys/dynamicscene/qml/dynamicscene/dynamicscene.qml @@ -194,7 +194,7 @@ Item { Button { text: "Create" onClicked: { - try { + try { Qt.createQmlObject(qmlText.text, window, 'CustomObject'); } catch(err) { dialog.show('Error on line ' + err.qmlErrors[0].lineNumber + '\n' + err.qmlErrors[0].message); diff --git a/examples/declarative/toys/dynamicscene/qml/dynamicscene/itemCreation.js b/examples/declarative/toys/dynamicscene/qml/dynamicscene/itemCreation.js index 4ee74c28..b96f3a5e 100644 --- a/examples/declarative/toys/dynamicscene/qml/dynamicscene/itemCreation.js +++ b/examples/declarative/toys/dynamicscene/qml/dynamicscene/itemCreation.js @@ -22,7 +22,7 @@ function loadComponent() { itemComponent = Qt.createComponent(paletteItem.componentFile); if (itemComponent.status == Component.Loading) //Depending on the content, it can be ready or error immediately component.statusChanged.connect(createItem); - else + else createItem(); } |