summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/slideswitch/slideswitch.qml6
-rw-r--r--examples/declarative/tutorials/helloworld/Cell.qml2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/slideswitch/slideswitch.qml b/examples/declarative/slideswitch/slideswitch.qml
index 9b46cd1..396749f 100644
--- a/examples/declarative/slideswitch/slideswitch.qml
+++ b/examples/declarative/slideswitch/slideswitch.qml
@@ -5,7 +5,7 @@ Rectangle {
color: "white"
width: 400; height: 250
- Switch {
- anchors.centerIn: parent
- }
+//![0]
+ Switch { anchors.centerIn: parent; on: false }
+//![0]
}
diff --git a/examples/declarative/tutorials/helloworld/Cell.qml b/examples/declarative/tutorials/helloworld/Cell.qml
index ab6e565..c38b40e 100644
--- a/examples/declarative/tutorials/helloworld/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/Cell.qml
@@ -8,7 +8,7 @@ Item {
property alias color: rectangle.color
//![4]
//![5]
- signal clicked(string color)
+ signal clicked(color color)
//![5]
width: 40; height: 25