summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-20 05:27:31 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-20 05:27:31 (GMT)
commitd61c87a4d54bc5745f26b4d67978b5e3881fc85f (patch)
tree066dac4d85b1138471ac2d6e74e341cd006e4fa5
parent61b287e14d75a86c44f99f1110848c9036f63ded (diff)
downloadQt-d61c87a4d54bc5745f26b4d67978b5e3881fc85f.zip
Qt-d61c87a4d54bc5745f26b4d67978b5e3881fc85f.tar.gz
Qt-d61c87a4d54bc5745f26b4d67978b5e3881fc85f.tar.bz2
Doc
-rw-r--r--doc/src/declarative/scope.qdoc12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/src/declarative/scope.qdoc b/doc/src/declarative/scope.qdoc
index 7dbbefc..14efa59 100644
--- a/doc/src/declarative/scope.qdoc
+++ b/doc/src/declarative/scope.qdoc
@@ -196,8 +196,15 @@ use the scope object to resolve variable references - \c height is a property on
and \c parent is a property on \l Text.
\code
-Item {
- Rectangle { // Scope object for Binding 1
+Item { // Scope object for Script block 1
+ Script { // Script block 1
+ function calculateValue() { ... }
+ }
+
+ Rectangle { // Scope object for Binding 1 and Script block 2
+ Script { // Script block 2
+ function calculateColor() { ... }
+ }
width: height * 2 // Binding 1
}
@@ -236,7 +243,6 @@ ListView {
\e TODO
\list
-\o scope object for Script {}
\o scope object for PropertyChanges
\endlist