summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/animation
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-03 00:01:13 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-03 00:04:03 (GMT)
commit17d0ed5af4922645a268b6550742fb521d459c8e (patch)
tree43f4077630bd896da88715dec894392c63ac666b /tests/auto/declarative/visual/animation
parent35a211cd95e0d09ef0b547b57f01f0a9ff41da2f (diff)
downloadQt-17d0ed5af4922645a268b6550742fb521d459c8e.zip
Qt-17d0ed5af4922645a268b6550742fb521d459c8e.tar.gz
Qt-17d0ed5af4922645a268b6550742fb521d459c8e.tar.bz2
Disallow ids that start with uppercase letters and update docs and
examples accordingly. Task-number: QT-2786
Diffstat (limited to 'tests/auto/declarative/visual/animation')
-rw-r--r--tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml14
-rw-r--r--tests/auto/declarative/visual/animation/parentAction/parentAction.qml10
-rw-r--r--tests/auto/declarative/visual/animation/propertyAction/propertyAction.qml8
3 files changed, 16 insertions, 16 deletions
diff --git a/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml b/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml
index 1afd4cd..732eb59 100644
--- a/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml
+++ b/tests/auto/declarative/visual/animation/bindinganimation/bindinganimation.qml
@@ -4,9 +4,9 @@ Rectangle {
color: "blue"
width: 320
height: 240
- id: Page
+ id: page
Rectangle {
- id: MyRectangle
+ id: myRectangle
width: 100
height: 100
color: "red"
@@ -16,12 +16,12 @@ Rectangle {
State {
name: "hello"
PropertyChanges {
- target: MyRectangle
+ target: myRectangle
x: 50 + 50
}
PropertyChanges {
- target: MyMouseRegion
- onClicked: Page.state = ''
+ target: myMouseRegion
+ onClicked: page.state = ''
}
}
]
@@ -33,8 +33,8 @@ Rectangle {
}
]
MouseRegion {
- id: MyMouseRegion
+ id: myMouseRegion
anchors.fill: parent
- onClicked: { Page.state= 'hello' }
+ onClicked: { page.state= 'hello' }
}
}
diff --git a/tests/auto/declarative/visual/animation/parentAction/parentAction.qml b/tests/auto/declarative/visual/animation/parentAction/parentAction.qml
index e69d234..1e3f402 100644
--- a/tests/auto/declarative/visual/animation/parentAction/parentAction.qml
+++ b/tests/auto/declarative/visual/animation/parentAction/parentAction.qml
@@ -8,7 +8,7 @@ Rectangle {
transformOrigin: "Center"
x: 10; y: 10
Rectangle {
- id: MyRect
+ id: myRect
x: 5
width: 100; height: 100
transformOrigin: "BottomLeft"
@@ -16,7 +16,7 @@ Rectangle {
}
}
MouseRegion {
- id: Clickable
+ id: clickable
anchors.fill: parent
}
@@ -32,13 +32,13 @@ Rectangle {
states: State {
name: "moved"
- when: Clickable.pressed
+ when: clickable.pressed
ParentChange {
- target: MyRect
+ target: myRect
parent: newParent
}
PropertyChanges {
- target: MyRect
+ target: myRect
rotation: -52
scale: 1
color: "blue"
diff --git a/tests/auto/declarative/visual/animation/propertyAction/propertyAction.qml b/tests/auto/declarative/visual/animation/propertyAction/propertyAction.qml
index a9d3c74..b670166 100644
--- a/tests/auto/declarative/visual/animation/propertyAction/propertyAction.qml
+++ b/tests/auto/declarative/visual/animation/propertyAction/propertyAction.qml
@@ -3,20 +3,20 @@ import Qt 4.6
Rectangle {
width: 400; height: 400
Rectangle {
- id: MyRect
+ id: myRect
width: 100; height: 100
color: "red"
}
MouseRegion {
- id: Clickable
+ id: clickable
anchors.fill: parent
}
states: State {
name: "state1"
- when: Clickable.pressed
+ when: clickable.pressed
PropertyChanges {
- target: MyRect
+ target: myRect
x: 50; y: 50
color: "blue"
}