summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmlinvokableservice_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scxml/qscxmlinvokableservice_p.h')
-rw-r--r--src/scxml/qscxmlinvokableservice_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scxml/qscxmlinvokableservice_p.h b/src/scxml/qscxmlinvokableservice_p.h
index e2a9e7b..37ca870 100644
--- a/src/scxml/qscxmlinvokableservice_p.h
+++ b/src/scxml/qscxmlinvokableservice_p.h
@@ -88,6 +88,7 @@ class Q_SCXML_EXPORT QScxmlScxmlService: public QScxmlInvokableService
{
Q_OBJECT
Q_DECLARE_PRIVATE(QScxmlInvokableService)
+ Q_PROPERTY(QScxmlStateMachine *stateMachine READ stateMachine CONSTANT)
public:
QScxmlScxmlService(QScxmlStateMachine *stateMachine,
QScxmlStateMachine *parentStateMachine,
@@ -98,8 +99,10 @@ public:
QString id() const Q_DECL_OVERRIDE;
QString name() const Q_DECL_OVERRIDE;
void postEvent(QScxmlEvent *event) Q_DECL_OVERRIDE;
+ QScxmlStateMachine *stateMachine() const;
- QScxmlStateMachine *stateMachine;
+private:
+ QScxmlStateMachine *m_stateMachine;
};
class QScxmlStaticScxmlServiceFactoryPrivate : public QScxmlInvokableServiceFactoryPrivate