diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-23 03:45:53 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-23 03:49:12 (GMT) |
commit | 714fac87324b9007e5f82487d2c4a10b1997616e (patch) | |
tree | 8b0832ee6ad805badd5a9dc2b04a5bd68d2979cc /src/declarative/util/qdeclarativetransition.cpp | |
parent | 7711d400e4ad4d65363bc910d76acdf0d1065195 (diff) | |
download | Qt-714fac87324b9007e5f82487d2c4a10b1997616e.zip Qt-714fac87324b9007e5f82487d2c4a10b1997616e.tar.gz Qt-714fac87324b9007e5f82487d2c4a10b1997616e.tar.bz2 |
Add missing NOTIFYs.
Task-number: QTBUG-8816
Diffstat (limited to 'src/declarative/util/qdeclarativetransition.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativetransition.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativetransition.cpp b/src/declarative/util/qdeclarativetransition.cpp index ac07b10..4326a55 100644 --- a/src/declarative/util/qdeclarativetransition.cpp +++ b/src/declarative/util/qdeclarativetransition.cpp @@ -67,7 +67,7 @@ QT_BEGIN_NAMESPACE \ingroup group_states */ -//ParallelAnimationWrapperallows us to do a "callback" when the animation finishes, rather than connecting +//ParallelAnimationWrapper allows us to do a "callback" when the animation finishes, rather than connecting //and disconnecting signals and slots frequently class ParallelAnimationWrapper : public QParallelAnimationGroup { @@ -195,7 +195,11 @@ QString QDeclarativeTransition::fromState() const void QDeclarativeTransition::setFromState(const QString &f) { Q_D(QDeclarativeTransition); + if (f == d->fromState) + return; + d->fromState = f; + emit fromChanged(); } /*! @@ -213,7 +217,11 @@ bool QDeclarativeTransition::reversible() const void QDeclarativeTransition::setReversible(bool r) { Q_D(QDeclarativeTransition); + if (r == d->reversible) + return; + d->reversible = r; + emit reversibleChanged(); } QString QDeclarativeTransition::toState() const @@ -225,7 +233,11 @@ QString QDeclarativeTransition::toState() const void QDeclarativeTransition::setToState(const QString &t) { Q_D(QDeclarativeTransition); + if (t == d->toState) + return; + d->toState = t; + emit toChanged(); } /*! |