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
parent
aa7180ca92
commit
130830e2d3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue