summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativestate.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-09 08:04:48 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-09 23:36:32 (GMT)
commit4a36a17e06b3ec7c20bcef9692d46dba5504151a (patch)
tree736843e2bab5e7a5a553a70234ab3d29ff5753fa /src/declarative/util/qdeclarativestate.cpp
parentce8a3100868e2c545d0af3332e9b801c1fd0bc3f (diff)
downloadQt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.zip
Qt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.tar.gz
Qt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.tar.bz2
Doc improvements: move some example code to snippets, add screenshots,
other minor doc fixes
Diffstat (limited to 'src/declarative/util/qdeclarativestate.cpp')
-rw-r--r--src/declarative/util/qdeclarativestate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/util/qdeclarativestate.cpp b/src/declarative/util/qdeclarativestate.cpp
index 37f9f6a..ae19a9c 100644
--- a/src/declarative/util/qdeclarativestate.cpp
+++ b/src/declarative/util/qdeclarativestate.cpp
@@ -144,8 +144,9 @@ QDeclarativeStateOperation::QDeclarativeStateOperation(QObjectPrivate &dd, QObje
can, for example, be used to apply different sets of property values or execute
different scripts.
- Here is an example. In the default state, \c myRect is colored black. In the "clicked"
- state, the color is red. Clicking within the MouseArea toggles the rectangle's state
+ The following example displays a single Rectangle. In the default state, the rectangle
+ is colored black. In the "clicked" state, a PropertyChanges element changes the
+ rectangle's color to red. Clicking within the MouseArea toggles the rectangle's state
between the default state and the "clicked" state, thus toggling the color of the
rectangle between black and red.