diff options
Diffstat (limited to 'src/scxml/qscxmlcppdatamodel.cpp')
-rw-r--r-- | src/scxml/qscxmlcppdatamodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scxml/qscxmlcppdatamodel.cpp b/src/scxml/qscxmlcppdatamodel.cpp index 88289ad..859f98f 100644 --- a/src/scxml/qscxmlcppdatamodel.cpp +++ b/src/scxml/qscxmlcppdatamodel.cpp @@ -64,7 +64,7 @@ using namespace QScxmlExecutableContent; The format of the \e datamodel attribute is: \c{cplusplus:<class-name>:<classdef-header>}. So, for the example above, there should be a file \e thedatamodel.h containing a subclass of QScxmlCppDataModel, containing at least the following: - \code + \badcode #include "qscxmlcppdatamodel.h" class TheDataModel: public QScxmlCppDataModel @@ -74,7 +74,7 @@ class TheDataModel: public QScxmlCppDataModel }; \endcode The Q_SCXML_DATAMODEL has to appear in the private section of the class definition, for example - right after the opening bracket, or after a \Q_OBJECT macro. + right after the opening bracket, or after a Q_OBJECT macro. This macro expands to the declaration of some virtual methods whose implementation is generated by the Qt SCXML compiler. @@ -138,6 +138,8 @@ QScxmlCppDataModel::QScxmlCppDataModel(QObject *parent) * for data model variables specified by their keys, \a initialDataValues. These * are the values specified by \c <param> tags in an \c <invoke> element. * + * Returns \c true on success. + * * \sa QScxmlStateMachine::init */ bool QScxmlCppDataModel::setup(const QVariantMap &initialDataValues) |