summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qmlintro.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/declarative/qmlintro.qdoc')
-rw-r--r--doc/src/declarative/qmlintro.qdoc12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/declarative/qmlintro.qdoc b/doc/src/declarative/qmlintro.qdoc
index ef84b8e..cfefdb9 100644
--- a/doc/src/declarative/qmlintro.qdoc
+++ b/doc/src/declarative/qmlintro.qdoc
@@ -80,11 +80,11 @@ expression has been assigned to is automatically updated to that value.
\code
Item {
Text {
- id: Text1
+ id: text1
text: "Hello World"
}
Text {
- id: Text2
+ id: text2
text: Text1.text
}
}
@@ -138,7 +138,7 @@ real, bool, string, color, and lists.
Item {
x: 10.5 // a 'real' property
...
- state: "Details" // a 'string' property
+ state: "details" // a 'string' property
focus: true // a 'bool' property
}
\endcode
@@ -161,16 +161,16 @@ to refer to it elsewhere.
\code
Item {
Text {
- id: MyName
+ id: myName
text: "..."
}
Text {
- text: MyName.text
+ text: myName.text
}
}
\endcode
-\c ids must begin with a letter. We recommend that you start your ids with a capital letter.
+\c Ids must begin with a lowercase letter.
\section2 List properties