diff options
author | mae <qt-info@nokia.com> | 2010-07-08 05:57:58 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-07-08 05:57:58 (GMT) |
commit | 5cd72b07d202b487ca42486dfefc99ba2fff0045 (patch) | |
tree | f99ec9c2dd92f25349d5145589037400adfe70cf /src/declarative/util/qdeclarativebehavior.cpp | |
parent | a2ee0cfd799f563f292e6b40ca460e05819fd0fd (diff) | |
download | Qt-5cd72b07d202b487ca42486dfefc99ba2fff0045.zip Qt-5cd72b07d202b487ca42486dfefc99ba2fff0045.tar.gz Qt-5cd72b07d202b487ca42486dfefc99ba2fff0045.tar.bz2 |
Optimization: change signal/slot to function call
Diffstat (limited to 'src/declarative/util/qdeclarativebehavior.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativebehavior.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/declarative/util/qdeclarativebehavior.cpp b/src/declarative/util/qdeclarativebehavior.cpp index 4480e75..2bb28c3 100644 --- a/src/declarative/util/qdeclarativebehavior.cpp +++ b/src/declarative/util/qdeclarativebehavior.cpp @@ -138,10 +138,6 @@ void QDeclarativeBehavior::setAnimation(QDeclarativeAbstractAnimation *animation SIGNAL(stateChanged(QAbstractAnimation::State,QAbstractAnimation::State)), this, SLOT(qtAnimationStateChanged(QAbstractAnimation::State,QAbstractAnimation::State))); - connect(this, - SIGNAL(qtAnimationRunningChanged(bool)), - d->animation, - SLOT(behaviorControlRunningChanged(bool))); } } @@ -150,7 +146,7 @@ void QDeclarativeBehavior::qtAnimationStateChanged(QAbstractAnimation::State new { Q_D(QDeclarativeBehavior); if (!d->blockRunningChanged) - emit qtAnimationRunningChanged(newState == QAbstractAnimation::Running); + d->animation->notifyRunningChanged(newState == QAbstractAnimation::Running); } |