1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
class ${classname}: public QScxmlStateMachine { /* qmake ignore Q_OBJECT */ Q_OBJECT ${properties} public: Q_INVOKABLE ${classname}(QObject *parent = 0); ~${classname}(); ${accessors} Q_SIGNALS: ${signals} private: struct Data; friend struct Data; struct Data *data; };