diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-28 11:45:23 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-29 06:29:47 (GMT) |
commit | 6293521a6e5ee0ce010180a40e6fda3ef3a8b245 (patch) | |
tree | 49b7fe5aa6a850e1a8c9157f0c1cd891e1449836 /src/corelib/statemachine/qstatemachine.h | |
parent | 4f6b9b1779fe33f876f96c196c3feef7e72992a0 (diff) | |
download | Qt-6293521a6e5ee0ce010180a40e6fda3ef3a8b245.zip Qt-6293521a6e5ee0ce010180a40e6fda3ef3a8b245.tar.gz Qt-6293521a6e5ee0ce010180a40e6fda3ef3a8b245.tar.bz2 |
add animationsEnabled property
Diffstat (limited to 'src/corelib/statemachine/qstatemachine.h')
-rw-r--r-- | src/corelib/statemachine/qstatemachine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qstatemachine.h b/src/corelib/statemachine/qstatemachine.h index 9a7a6fc..3ad215b 100644 --- a/src/corelib/statemachine/qstatemachine.h +++ b/src/corelib/statemachine/qstatemachine.h @@ -74,6 +74,9 @@ class Q_CORE_EXPORT QStateMachine : public QObject Q_PROPERTY(QString errorString READ errorString) Q_PROPERTY(RestorePolicy globalRestorePolicy READ globalRestorePolicy WRITE setGlobalRestorePolicy) Q_ENUMS(RestorePolicy) +#ifndef QT_NO_ANIMATION + Q_PROPERTY(bool animationsEnabled READ animationsEnabled WRITE setAnimationsEnabled) +#endif public: enum RestorePolicy { DoNotRestoreProperties, @@ -105,6 +108,9 @@ public: void clearError(); #ifndef QT_NO_ANIMATION + bool animationsEnabled() const; + void setAnimationsEnabled(bool enabled); + void addDefaultAnimation(QAbstractAnimation *animation); QList<QAbstractAnimation *> defaultAnimations() const; void removeDefaultAnimation(QAbstractAnimation *animation); |