summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-22 06:10:31 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-22 06:10:31 (GMT)
commita477ea20364da0b0c363b02084adf3c5eff843b1 (patch)
tree2f32d0c74c1dc09c583f4fa50707e867a2a9c160 /src/declarative/qml
parent9e9c979affd1ce76a07c6545c25d2851c7964a7c (diff)
downloadQt-a477ea20364da0b0c363b02084adf3c5eff843b1.zip
Qt-a477ea20364da0b0c363b02084adf3c5eff843b1.tar.gz
Qt-a477ea20364da0b0c363b02084adf3c5eff843b1.tar.bz2
change all ids in doc examples to start with lower case.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlcomponent.cpp6
-rw-r--r--src/declarative/qml/qmldom.cpp8
-rw-r--r--src/declarative/qml/qmlengine.cpp4
3 files changed, 9 insertions, 9 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index dc71989..0c85574 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -84,15 +84,15 @@ int statusId = qRegisterMetaType<QmlComponent::Status>("QmlComponent::Status");
\qml
Item {
Component {
- id: RedSquare
+ id: redSquare
Rectangle {
color: "red"
width: 10
height: 10
}
}
- Loader { sourceComponent: RedSquare }
- Loader { sourceComponent: RedSquare; x: 20 }
+ Loader { sourceComponent: redSquare }
+ Loader { sourceComponent: redSquare; x: 20 }
}
\endqml
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp
index ce1bb93..a0601d7 100644
--- a/src/declarative/qml/qmldom.cpp
+++ b/src/declarative/qml/qmldom.cpp
@@ -764,7 +764,7 @@ int QmlDomObject::objectTypeMinorVersion() const
For example, the object id of this object would be "MyText".
\qml
-Text { id: MyText }
+Text { id: myText }
\endqml
*/
QString QmlDomObject::objectId() const
@@ -1599,12 +1599,12 @@ QList<int> QmlDomList:: commaPositions() const
Sub-components are QmlComponents defined within a QML document. The
following example shows the definition of a sub-component with the id
- "ListDelegate".
+ "listDelegate".
\qml
Item {
Component {
- id: ListDelegate
+ id: listDelegate
Text {
text: modelData.text
}
@@ -1653,7 +1653,7 @@ QmlDomComponent &QmlDomComponent::operator=(const QmlDomComponent &other)
\qml
Item {
Component {
- id: ListDelegate
+ id: listDelegate
Text {
text: modelData.text
}
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 9fad80b..354114a 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -747,7 +747,7 @@ QScriptValue QmlEnginePrivate::createQmlObject(QScriptContext *ctxt, QScriptEngi
\code
transform: Rotation {
- id: Rotation
+ id: rotation
origin.x: Container.width / 2;
axis: vector(0, 1, 1)
}
@@ -757,7 +757,7 @@ QScriptValue QmlEnginePrivate::createQmlObject(QScriptContext *ctxt, QScriptEngi
\code
transform: Rotation {
- id: Rotation
+ id: rotation
origin.x: Container.width / 2;
axis.x: 0; axis.y: 1; axis.z: 0
}