diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-28 13:29:37 +0200 |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-29 08:29:47 +0200 |
commit | 4f6b9b1779fe33f876f96c196c3feef7e72992a0 (patch) | |
tree | 3131513d79437f85ba411a4c5fe12143b1d62504 /src/corelib/statemachine/qstate_p.h | |
parent | 9c28c75052a38eb3b317c2ac7ad2a26c73deeb2d (diff) |
move assignProperty() to QState
Doesn't belong in the abstract base class.
Diffstat (limited to 'src/corelib/statemachine/qstate_p.h')
-rw-r--r-- | src/corelib/statemachine/qstate_p.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qstate_p.h b/src/corelib/statemachine/qstate_p.h index 2df682316f..603bc183b8 100644 --- a/src/corelib/statemachine/qstate_p.h +++ b/src/corelib/statemachine/qstate_p.h @@ -56,9 +56,26 @@ #include "qabstractstate_p.h" #include <QtCore/qlist.h> +#include <QtCore/qbytearray.h> +#include <QtCore/qvariant.h> QT_BEGIN_NAMESPACE +struct QPropertyAssignment +{ + QPropertyAssignment(QObject *o, const QByteArray &n, + const QVariant &v, bool es = true) + : object(o), propertyName(n), value(v), explicitlySet(es) + {} + QObject *object; + QByteArray propertyName; + QVariant value; + bool explicitlySet; +}; + +class QAbstractTransition; +class QHistoryState; + class QState; class Q_CORE_EXPORT QStatePrivate : public QAbstractStatePrivate { @@ -79,6 +96,8 @@ public: QAbstractState *errorState; bool isParallelGroup; QAbstractState *initialState; + + QList<QPropertyAssignment> propertyAssignments; }; QT_END_NAMESPACE |