summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2017-03-20 10:40:15 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2017-03-21 12:07:10 +0000
commit86dcf7cb1adf5a97a9a876ca3dfefe13243bb558 (patch)
tree787f736a43755463f6c07f9b8547893051ea2027
parentab5ca688d090a2f92472c8adffbcfbb308480fcd (diff)
Doc: Add docs for the EventConnection QML type
Change-Id: I0b4c93797fa076e6360c92badea551b01acef644 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--src/imports/scxmlstatemachine/eventconnection.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/imports/scxmlstatemachine/eventconnection.cpp b/src/imports/scxmlstatemachine/eventconnection.cpp
index 9803a9a..c35d43c 100644
--- a/src/imports/scxmlstatemachine/eventconnection.cpp
+++ b/src/imports/scxmlstatemachine/eventconnection.cpp
@@ -41,6 +41,43 @@
QT_BEGIN_NAMESPACE
+/*!
+ \qmltype EventConnection
+ \instantiates QScxmlEventConnection
+ \inqmlmodule QtScxml
+ \since QtScxml 5.8
+
+ \brief Connects to events sent out by state machines.
+
+ To receive a notification when a state machine sends out an event, a
+ connection can be created to the corresponding signal.
+*/
+
+/*!
+ \qmlproperty QStringList EventConnection::events
+
+ The list of SCXML event specifiers that describe the events to listen for.
+
+ Even though spaces are allowed in event specifications in SCXML documents,
+ they are not allowed in this list. However, the list can contain multiple
+ specifiers, to the same effect.
+*/
+
+/*!
+ \qmlproperty QScxmlStateMachine EventConnection::stateMachine
+
+ The state machine that sends out the event.
+*/
+
+/*!
+ \qmlsignal EventConnection::occurred(QScxmlEvent event)
+
+ This signal is emitted when the event \a event occurrs.
+
+ The corresponding signal handler is \c onOccurred.
+*/
+
+
QScxmlEventConnection::QScxmlEventConnection(QObject *parent) :
QObject(parent), m_stateMachine(nullptr)
{