summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@nokia.com>2011-01-05 10:41:57 (GMT)
committerJerome Pasion <jerome.pasion@nokia.com>2011-01-05 10:41:57 (GMT)
commit55d05512939b8e7a43f22a1cc423112d8fb3d2eb (patch)
tree5cb44bd6883fe8da180378fe7416d5b1514f6578 /src/declarative/util
parent9b0ad342cc888bd4291c84f63fe485bfbfdc3ce0 (diff)
parentf44f7084a3020ed8e249644d5b5e07f74cb7b070 (diff)
downloadQt-55d05512939b8e7a43f22a1cc423112d8fb3d2eb.zip
Qt-55d05512939b8e7a43f22a1cc423112d8fb3d2eb.tar.gz
Qt-55d05512939b8e7a43f22a1cc423112d8fb3d2eb.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Merging qt-doc-team into cloned repository
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qdeclarativeconnections.cpp8
-rw-r--r--src/declarative/util/qdeclarativestateoperations.cpp20
2 files changed, 5 insertions, 23 deletions
diff --git a/src/declarative/util/qdeclarativeconnections.cpp b/src/declarative/util/qdeclarativeconnections.cpp
index 15e5ac5..8b3a9da 100644
--- a/src/declarative/util/qdeclarativeconnections.cpp
+++ b/src/declarative/util/qdeclarativeconnections.cpp
@@ -82,7 +82,7 @@ public:
\qml
MouseArea {
- onClicked: { foo(...) }
+ onClicked: { foo(parameters) }
}
\endqml
@@ -103,7 +103,7 @@ public:
\qml
MouseArea {
Connections {
- onClicked: foo(...)
+ onClicked: foo(parameters)
}
}
\endqml
@@ -115,10 +115,10 @@ public:
MouseArea {
id: area
}
- ...
+ // ...
Connections {
target: area
- onClicked: foo(...)
+ onClicked: foo(parameters)
}
\endqml
diff --git a/src/declarative/util/qdeclarativestateoperations.cpp b/src/declarative/util/qdeclarativestateoperations.cpp
index d1d7822..1df9013 100644
--- a/src/declarative/util/qdeclarativestateoperations.cpp
+++ b/src/declarative/util/qdeclarativestateoperations.cpp
@@ -599,25 +599,7 @@ public:
ScriptAction to specify the point in the transition at which
the StateChangeScript should to be run.
- \qml
- State {
- name "state1"
- StateChangeScript {
- name: "myScript"
- script: doStateStuff();
- }
- ...
- }
- ...
- Transition {
- to: "state1"
- SequentialAnimation {
- NumberAnimation { ... }
- ScriptAction { scriptName: "myScript" }
- NumberAnimation { ... }
- }
- }
- \endqml
+ \snippet snippets/declarative/states/statechangescript.qml state and transition
\sa ScriptAction
*/