summaryrefslogtreecommitdiffstats
path: root/demos/declarative/calculator
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 /demos/declarative/calculator
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 'demos/declarative/calculator')
-rw-r--r--demos/declarative/calculator/CalcButton.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/declarative/calculator/CalcButton.qml b/demos/declarative/calculator/CalcButton.qml
index 03ede9c..08851d0 100644
--- a/demos/declarative/calculator/CalcButton.qml
+++ b/demos/declarative/calculator/CalcButton.qml
@@ -9,8 +9,8 @@ Rectangle {
id: button; width: 50; height: 30
border.color: palette.mid; radius: 6
gradient: Gradient {
- GradientStop { id: G1; position: 0.0; color: Qt.lighter(palette.button) }
- GradientStop { id: G2; position: 1.0; color: palette.button }
+ GradientStop { id: gradientStop1; position: 0.0; color: Qt.lighter(palette.button) }
+ GradientStop { id: gradientStop2; position: 1.0; color: palette.button }
}
Text { id: label; anchors.centerIn: parent; color: palette.buttonText }
@@ -29,13 +29,13 @@ Rectangle {
states: [
State {
name: "Pressed"; when: clickRegion.pressed == true
- PropertyChanges { target: G1; color: palette.dark }
- PropertyChanges { target: G2; color: palette.button }
+ PropertyChanges { target: gradientStop1; color: palette.dark }
+ PropertyChanges { target: gradientStop2; color: palette.button }
},
State {
name: "Toggled"; when: button.toggled == true
- PropertyChanges { target: G1; color: palette.dark }
- PropertyChanges { target: G2; color: palette.button }
+ PropertyChanges { target: gradientStop1; color: palette.dark }
+ PropertyChanges { target: gradientStop2; color: palette.button }
}
]
}