summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Honkamaa <mats.honkamaa@qt.io>2019-06-25 10:31:55 +0300
committerMats Honkamaa <mats.honkamaa@qt.io>2019-06-25 10:31:55 +0300
commitc6bb970c3f123d20fa07fb09c20a57d04c7b7ca1 (patch)
treef72eebfd30f6f3603b4bcc8cfa5e560ea223ab2b
parent13218243896a314036bc59d7be7293ffb0bcd11e (diff)
Add documentation for presentation signals
Added documentation for the last signals missing documentation. Mainly copy and paste from Qt3D Runtime but some re-writing. Task-number: QT3DS-3562 Change-Id: I7f2c19a88921f47ea6d1ede3577595522a2c2b88 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
-rw-r--r--src/api/studio3d/q3dspresentation.cpp59
1 files changed, 52 insertions, 7 deletions
diff --git a/src/api/studio3d/q3dspresentation.cpp b/src/api/studio3d/q3dspresentation.cpp
index 4990da7..cd9ecfa 100644
--- a/src/api/studio3d/q3dspresentation.cpp
+++ b/src/api/studio3d/q3dspresentation.cpp
@@ -1335,25 +1335,48 @@ void Q3DSPresentation::keyReleaseEvent(QKeyEvent *e)
}
}
-// #TODO: QT3DS-3562 Most Presentation signals missing documentation
/*!
\qmlsignal Presentation::slideEntered(string elementPath, int index, string name)
- //! TODO
+
+ Emitted when a slide in a presentation or component is entered. \a elementPath
+ specifies the slide path. \a index and \a name contain the index and
+ the name of the entered slide.
+
+ This signal is emitted for each component, meaning that it can be emitted multiple
+ times on one slide change.
*/
/*!
\fn Q3DSPresentation::slideEntered(const QString &elementPath, unsigned int index, const QString &name)
- //! TODO
+
+ Emitted when a slide in a presentation or component is entered. \a elementPath
+ specifies the slide path. \a index and \a name contain the index and
+ the name of the entered slide.
+
+ This signal is emitted for each component, meaning that it can be emitted multiple
+ times on one slide change.
*/
/*!
\qmlsignal Presentation::slideExited(string elementPath, int index, string name)
- //! TODO
+
+ Emitted when a slide in a presentation or component is exited. \a elementPath
+ specifies the slide path. \a index and \a name contain the index and
+ the name of the exited slide.
+
+ This signal is emitted for each component, meaning that it can be emitted multiple
+ times on one slide change.
*/
/*!
\fn Q3DSPresentation::slideExited(const QString &elementPath, unsigned int index, const QString &name)
- //! TODO
+
+ Emitted when a slide in a presentation or component is exited. \a elementPath
+ specifies the slide path. \a index and \a name contain the index and
+ the name of the exited slide.
+
+ This signal is emitted for each component, meaning that it can be emitted multiple
+ times on one slide change.
*/
/*!
@@ -1372,12 +1395,34 @@ void Q3DSPresentation::keyReleaseEvent(QKeyEvent *e)
/*!
\qmlsignal Presentation::customSignalEmitted(string elementPath, string name)
- //! TODO
+
+ Emitted when an action with the \c{Emit Signal}
+ handler is executed in the Qt 3D Studio presentation. \a
+ elementPath specifies \c{Target Object}, and \a name specifies \c{Signal Name}.
+
+ Connecting to this signal offers a way of reacting upon certain
+ events in the Qt 3D Studio presentation.
+
+ \image customsignal.png
+
+ In this example, pressing or tapping on the Cluster object will result in
+ emitting \c{customSignalEmitted("Cluster", "clusterPressed")}.
*/
/*!
\fn Q3DSPresentation::customSignalEmitted(const QString &elementPath, const QString &name)
- //! TODO
+
+ Emitted when an action with the \c{Emit Signal}
+ handler is executed in the Qt 3D Studio presentation. \a
+ elementPath specifies \c{Target Object}, and \a name specifies \c{Signal Name}.
+
+ Connecting to this signal offers a way of reacting upon certain
+ events in the Qt 3D Studio presentation.
+
+ \image customsignal.png
+
+ In this example, pressing or tapping on the Cluster object will result in
+ emitting \c{customSignalEmitted("Cluster", "clusterPressed")}.
*/
/*!