summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/helloworld
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-10-06 04:05:40 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-10-06 04:05:40 (GMT)
commit43199af242918b3c77bb47bdcc3ec60f8236b0d3 (patch)
tree94293b06614afbd3a2a89004204a23e7228a3d51 /examples/declarative/tutorials/helloworld
parentb9663faad39ae02b7dbee9f2cea7dce7d25894f8 (diff)
downloadQt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.zip
Qt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.tar.gz
Qt-43199af242918b3c77bb47bdcc3ec60f8236b0d3.tar.bz2
lowercase ids
Diffstat (limited to 'examples/declarative/tutorials/helloworld')
-rw-r--r--examples/declarative/tutorials/helloworld/t1/tutorial1.qml6
-rw-r--r--examples/declarative/tutorials/helloworld/t2/Cell.qml6
-rw-r--r--examples/declarative/tutorials/helloworld/t2/tutorial2.qml10
-rw-r--r--examples/declarative/tutorials/helloworld/t3/Cell.qml6
-rw-r--r--examples/declarative/tutorials/helloworld/t3/tutorial3.qml16
5 files changed, 22 insertions, 22 deletions
diff --git a/examples/declarative/tutorials/helloworld/t1/tutorial1.qml b/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
index f09dcd1..e2c6650 100644
--- a/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
+++ b/examples/declarative/tutorials/helloworld/t1/tutorial1.qml
@@ -1,16 +1,16 @@
import Qt 4.6
Rectangle {
- id: Page
+ id: page
width: 480
height: 200
color: "LightGrey"
Text {
- id: HelloText
+ id: helloText
text: "Hello world!"
font.pointSize: 24
font.bold: true
y: 30
- anchors.horizontalCenter: Page.horizontalCenter
+ anchors.horizontalCenter: page.horizontalCenter
}
}
diff --git a/examples/declarative/tutorials/helloworld/t2/Cell.qml b/examples/declarative/tutorials/helloworld/t2/Cell.qml
index b3c52b7..bfd835d 100644
--- a/examples/declarative/tutorials/helloworld/t2/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/t2/Cell.qml
@@ -3,16 +3,16 @@ import Qt 4.6
Item {
property var color
- id: CellContainer
+ id: cellContainer
width: 40
height: 25
Rectangle {
anchors.fill: parent
- color: CellContainer.color
+ color: cellContainer.color
}
MouseRegion {
anchors.fill: parent
- onClicked: { HelloText.color = CellContainer.color }
+ onClicked: { helloText.color = cellContainer.color }
}
}
diff --git a/examples/declarative/tutorials/helloworld/t2/tutorial2.qml b/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
index 458e302..aee9032 100644
--- a/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
+++ b/examples/declarative/tutorials/helloworld/t2/tutorial2.qml
@@ -1,22 +1,22 @@
import Qt 4.6
Rectangle {
- id: Page
+ id: page
width: 480
height: 200
color: "LightGrey"
Text {
- id: HelloText
+ id: helloText
text: "Hello world!"
font.pointSize: 24
font.bold: true
y: 30
- anchors.horizontalCenter: Page.horizontalCenter
+ anchors.horizontalCenter: page.horizontalCenter
}
Grid {
- id: ColorPicker
+ id: colorPicker
x: 0
- anchors.bottom: Page.bottom
+ anchors.bottom: page.bottom
width: 120; height: 50
rows: 2; columns: 3
Cell { color: "#ff0000" }
diff --git a/examples/declarative/tutorials/helloworld/t3/Cell.qml b/examples/declarative/tutorials/helloworld/t3/Cell.qml
index 4b1a220..6feb7a9 100644
--- a/examples/declarative/tutorials/helloworld/t3/Cell.qml
+++ b/examples/declarative/tutorials/helloworld/t3/Cell.qml
@@ -3,15 +3,15 @@ import Qt 4.6
Item {
property var color
- id: CellContainer
+ id: cellContainer
width: 40
height: 25
Rectangle {
anchors.fill: parent
- color: CellContainer.color
+ color: cellContainer.color
}
MouseRegion {
anchors.fill: parent
- onClicked: { HelloText.color = CellContainer.color }
+ onClicked: { helloText.color = cellContainer.color }
}
}
diff --git a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
index 426640d..b80065d 100644
--- a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
+++ b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml
@@ -1,23 +1,23 @@
import Qt 4.6
Rectangle {
- id: Page
+ id: page
width: 480
height: 200
color: "LightGrey"
Text {
- id: HelloText
+ id: helloText
text: "Hello world!"
font.pointSize: 24
font.bold: true
y: 30
- anchors.horizontalCenter: Page.horizontalCenter
+ anchors.horizontalCenter: page.horizontalCenter
states: [
State {
name: "down"
- when: MouseRegionId.pressed == true
+ when: mouseRegion.pressed == true
PropertyChanges {
- target: HelloText
+ target: helloText
y: 160
color: "red"
}
@@ -39,11 +39,11 @@ Rectangle {
}
]
}
- MouseRegion { id: MouseRegionId; anchors.fill: HelloText }
+ MouseRegion { id: mouseRegion; anchors.fill: helloText }
Grid {
- id: ColorPicker
+ id: colorPicker
x: 0
- anchors.bottom: Page.bottom
+ anchors.bottom: page.bottom
width: 120; height: 50
rows: 2; columns: 3
Cell { color: "#ff0000" }