summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-01-22 16:02:27 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-01-26 09:53:14 +0000
commit7d4c3804baa433530eb55ca81dec72b1d53c6b9f (patch)
tree2d8ba629f85df4be7aab0656bf2ba1a954ebf006 /doc
parent702c6aac9ff8b80954308112fbfab5765d07caa5 (diff)
Add SetDataInputValue to IScriptBridge
Data inputs and their linked attributes are collected into a map at presentation initialization time. Task-number: QT3DS-857 Change-Id: I6a22ddf16867e76b0fed1c1b5d7e6ab08153c024 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/06-qml-reference/Behavior.qdoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/06-qml-reference/Behavior.qdoc b/doc/src/06-qml-reference/Behavior.qdoc
index da14c638..d24202b0 100644
--- a/doc/src/06-qml-reference/Behavior.qdoc
+++ b/doc/src/06-qml-reference/Behavior.qdoc
@@ -51,7 +51,7 @@
Secondly, the QML behavior script needs access to the QML module.
\badcode
-import QtStudio3D.Behavior 1.0
+import QtStudio3D.Behavior 1.1
\endcode
Finally, the Behavior type needs to be implemented in the qml script.
@@ -170,6 +170,12 @@ Behavior {
*/
/*!
+ \qmlmethod void Behavior::setDataInputValue(string name, variant value)
+
+ Sets the \a value of the data input identified with the \a name.
+ */
+
+/*!
\qmlsignal void Behavior::onInitialize()
This signal is emitted when the script becomes active the first time.