diff options
Diffstat (limited to 'examples/declarative/toys')
15 files changed, 24 insertions, 24 deletions
diff --git a/examples/declarative/toys/clocks/clocks.pro b/examples/declarative/toys/clocks/clocks.pro index 3fc085ca..9988765d 100644 --- a/examples/declarative/toys/clocks/clocks.pro +++ b/examples/declarative/toys/clocks/clocks.pro @@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK # DEFINES += QMLJSDEBUGGER # If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. +# the following lines and add the respective components to the +# MOBILITY variable. # CONFIG += mobility # MOBILITY += diff --git a/examples/declarative/toys/clocks/qml/clocks/content/Clock.qml b/examples/declarative/toys/clocks/qml/clocks/content/Clock.qml index d0d3ac53..e26ab728 100644 --- a/examples/declarative/toys/clocks/qml/clocks/content/Clock.qml +++ b/examples/declarative/toys/clocks/qml/clocks/content/Clock.qml @@ -47,7 +47,7 @@ Item { property alias city: cityLabel.text property int hours property int minutes - property int seconds + property int seconds property real shift property bool night: false diff --git a/examples/declarative/toys/corkboards/corkboards.pro b/examples/declarative/toys/corkboards/corkboards.pro index dbcfc859..b32e640e 100644 --- a/examples/declarative/toys/corkboards/corkboards.pro +++ b/examples/declarative/toys/corkboards/corkboards.pro @@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK # DEFINES += QMLJSDEBUGGER # If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. +# the following lines and add the respective components to the +# MOBILITY variable. # CONFIG += mobility # MOBILITY += diff --git a/examples/declarative/toys/corkboards/qml/corkboards/Day.qml b/examples/declarative/toys/corkboards/qml/corkboards/Day.qml index c698a02c..ef54a788 100644 --- a/examples/declarative/toys/corkboards/qml/corkboards/Day.qml +++ b/examples/declarative/toys/corkboards/qml/corkboards/Day.qml @@ -48,7 +48,7 @@ Component { width: ListView.view.width+40; height: ListView.view.height - Image { + Image { source: "cork.jpg" width: page.ListView.view.width height: page.ListView.view.height diff --git a/examples/declarative/toys/corkboards/qml/corkboards/corkboards.qml b/examples/declarative/toys/corkboards/qml/corkboards/corkboards.qml index 54ce43be..ad908161 100644 --- a/examples/declarative/toys/corkboards/qml/corkboards/corkboards.qml +++ b/examples/declarative/toys/corkboards/qml/corkboards/corkboards.qml @@ -49,12 +49,12 @@ Rectangle { ListElement { name: "Sunday" - notes: [ + notes: [ ListElement { noteText: "Lunch" }, ListElement { noteText: "Birthday Party" } ] } - + ListElement { name: "Monday" notes: [ diff --git a/examples/declarative/toys/dynamicscene/dynamicscene.pro b/examples/declarative/toys/dynamicscene/dynamicscene.pro index c77e7374..d9c1678d 100644 --- a/examples/declarative/toys/dynamicscene/dynamicscene.pro +++ b/examples/declarative/toys/dynamicscene/dynamicscene.pro @@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK # DEFINES += QMLJSDEBUGGER # If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. +# the following lines and add the respective components to the +# MOBILITY variable. # CONFIG += mobility # MOBILITY += 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(); } diff --git a/examples/declarative/toys/tic-tac-toe/qml/tic-tac-toe/content/Button.qml b/examples/declarative/toys/tic-tac-toe/qml/tic-tac-toe/content/Button.qml index ebf52e4d..5f4a34a6 100644 --- a/examples/declarative/toys/tic-tac-toe/qml/tic-tac-toe/content/Button.qml +++ b/examples/declarative/toys/tic-tac-toe/qml/tic-tac-toe/content/Button.qml @@ -49,7 +49,7 @@ Rectangle { signal clicked width: buttonLabel.width + 20; height: buttonLabel.height + 6 - border { width: 1; color: Qt.darker(container.color) } + border { width: 1; color: Qt.darker(container.color) } radius: 8 color: "lightgray" smooth: true @@ -59,13 +59,13 @@ Rectangle { position: 0.0 color: container.pressed ? "darkgray" : "white" } - GradientStop { + GradientStop { position: 1.0 color: container.color } } - MouseArea { + MouseArea { anchors.fill: parent onClicked: container.clicked() } diff --git a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.pro b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.pro index 84045aa9..7d1bec3d 100644 --- a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.pro +++ b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.pro @@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK # DEFINES += QMLJSDEBUGGER # If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. +# the following lines and add the respective components to the +# MOBILITY variable. # CONFIG += mobility # MOBILITY += diff --git a/examples/declarative/toys/tvtennis/qml/tvtennis/tvtennis.qml b/examples/declarative/toys/tvtennis/qml/tvtennis/tvtennis.qml index c7f534cd..f05b3362 100644 --- a/examples/declarative/toys/tvtennis/qml/tvtennis/tvtennis.qml +++ b/examples/declarative/toys/tvtennis/qml/tvtennis/tvtennis.qml @@ -64,7 +64,7 @@ Rectangle { PropertyAction { target: ball; property: "direction"; value: "right" } } - // Make y move with a velocity of 200 + // Make y move with a velocity of 200 Behavior on y { SpringAnimation{ velocity: 200; } } diff --git a/examples/declarative/toys/tvtennis/tvtennis.pro b/examples/declarative/toys/tvtennis/tvtennis.pro index 1b934494..5f1703b6 100644 --- a/examples/declarative/toys/tvtennis/tvtennis.pro +++ b/examples/declarative/toys/tvtennis/tvtennis.pro @@ -14,8 +14,8 @@ DEFINES += ORIENTATIONLOCK # DEFINES += QMLJSDEBUGGER # If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. +# the following lines and add the respective components to the +# MOBILITY variable. # CONFIG += mobility # MOBILITY += |