statemachine: Add some missing QT_NO_PROPERTIES guards

... and move the applyProperties() declaration to the right place.

Change-Id: Iff4f468f2e7bc0350866b737a0db02c0f74bdd4f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
bb10
Kent Hansen 2012-07-04 21:13:01 +02:00 committed by Qt by Nokia
parent aa7180ca92
commit 130830e2d3
2 changed files with 10 additions and 4 deletions

View File

@ -62,6 +62,8 @@
QT_BEGIN_NAMESPACE
#ifndef QT_NO_PROPERTIES
struct QPropertyAssignment
{
QPropertyAssignment()
@ -80,6 +82,8 @@ struct QPropertyAssignment
bool explicitlySet;
};
#endif // QT_NO_PROPERTIES
class QAbstractTransition;
class QHistoryState;
@ -109,7 +113,9 @@ public:
mutable bool transitionsListNeedsRefresh;
mutable QList<QAbstractTransition*> transitionsList;
#ifndef QT_NO_PROPERTIES
QList<QPropertyAssignment> propertyAssignments;
#endif
};
QT_END_NAMESPACE

View File

@ -142,10 +142,6 @@ public:
QSet<QAbstractState*> &statesToEnter,
QSet<QAbstractState*> &statesForDefaultEntry);
void applyProperties(const QList<QAbstractTransition*> &transitionList,
const QList<QAbstractState*> &exitedStates,
const QList<QAbstractState*> &enteredStates);
static QState *toStandardState(QAbstractState *state);
static const QState *toStandardState(const QAbstractState *state);
static QFinalState *toFinalState(QAbstractState *state);
@ -184,6 +180,10 @@ public:
void cancelAllDelayedEvents();
#ifndef QT_NO_PROPERTIES
void applyProperties(const QList<QAbstractTransition*> &transitionList,
const QList<QAbstractState*> &exitedStates,
const QList<QAbstractState*> &enteredStates);
typedef QPair<QPointer<QObject>, QByteArray> RestorableId;
QHash<RestorableId, QVariant> registeredRestorables;
void registerRestorable(QObject *object, const QByteArray &propertyName);