diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-10 11:16:52 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2016-03-30 11:56:34 +0000 |
commit | 2f2e803aa720e8a60b18eab7e4c41e67cd449457 (patch) | |
tree | 6807c3d6a8140e04e70d805f2e046eacda4c846f /src/scxml/qscxmlcppdatamodel_p.h | |
parent | 40914b6c47945dbce11f4993cd0dcf4f640161b3 (diff) |
Drop the stateMachine parameter from data model constructors
Instead, make the data model a Q_PROPERTY of state machines. This makes
it much easier to independently instantiate state machines and data
models from QML and connect them via properties.
Change-Id: I62d712dd0ad7817c39432204ced431b8041e442d
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'src/scxml/qscxmlcppdatamodel_p.h')
-rw-r--r-- | src/scxml/qscxmlcppdatamodel_p.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/scxml/qscxmlcppdatamodel_p.h b/src/scxml/qscxmlcppdatamodel_p.h index 5a779e2..1712a73 100644 --- a/src/scxml/qscxmlcppdatamodel_p.h +++ b/src/scxml/qscxmlcppdatamodel_p.h @@ -60,8 +60,6 @@ QT_BEGIN_NAMESPACE class Q_SCXML_EXPORT QScxmlCppDataModelPrivate : public QScxmlDataModelPrivate { public: - QScxmlCppDataModelPrivate(QScxmlStateMachine *stateMachine) : - QScxmlDataModelPrivate(stateMachine) {} QScxmlEvent event; }; |