summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-29 12:00:31 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-29 12:00:31 (GMT)
commitf7d69d7538fc77f65fb2f0223a5c3def03d3f9c8 (patch)
treeef701671997dc4d44b604cb01032d754baee75ec /src/corelib/statemachine
parent4bb51ce9c9e34058a1f9cefae9bf1c82ff4d3c5b (diff)
downloadQt-f7d69d7538fc77f65fb2f0223a5c3def03d3f9c8.zip
Qt-f7d69d7538fc77f65fb2f0223a5c3def03d3f9c8.tar.gz
Qt-f7d69d7538fc77f65fb2f0223a5c3def03d3f9c8.tar.bz2
kill source/target-specific animations
Result of API review. We don't have use cases for them yet. We can add them back if valid use cases do turn up.
Diffstat (limited to 'src/corelib/statemachine')
-rw-r--r--src/corelib/statemachine/qstatemachine.cpp66
-rw-r--r--src/corelib/statemachine/qstatemachine.h8
2 files changed, 0 insertions, 74 deletions
diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp
index b0f6cd6..8320b0d 100644
--- a/src/corelib/statemachine/qstatemachine.cpp
+++ b/src/corelib/statemachine/qstatemachine.cpp
@@ -1930,72 +1930,6 @@ void QStateMachine::removeDefaultAnimation(QAbstractAnimation *animation)
d->defaultAnimations.removeAll(animation);
}
-
-/*!
- Adds a default \a animation to be considered for any transition with the source state
- \a sourceState.
-*/
-void QStateMachine::addDefaultAnimationForSourceState(QAbstractState *sourceState,
- QAbstractAnimation *animation)
-{
- Q_D(QStateMachine);
- d->defaultAnimationsForSource.insert(sourceState, animation);
-}
-
-
-/*!
- Returns the list of default animations that will be considered for any transition with
- the source state \a sourceState.
-*/
-QList<QAbstractAnimation*> QStateMachine::defaultAnimationsForSourceState(QAbstractState *sourceState) const
-{
- Q_D(const QStateMachine);
- return d->defaultAnimationsForSource.values(sourceState);
-}
-
-/*!
- Removes \a animation from the list of default animations for the source state
- \a sourceState.
-*/
-void QStateMachine::removeDefaultAnimationForSourceState(QAbstractState *sourceState,
- QAbstractAnimation *animation)
-{
- Q_D(QStateMachine);
- d->defaultAnimationsForSource.remove(sourceState, animation);
-}
-
-/*!
- Adds a default \a animation to be considered for any transition with the target state
- \a targetState.
-*/
-void QStateMachine::addDefaultAnimationForTargetState(QAbstractState *targetState,
- QAbstractAnimation *animation)
-{
- Q_D(QStateMachine);
- d->defaultAnimationsForTarget.insert(targetState, animation);
-}
-
-/*!
- Returns the list of default animations that will be considered for any transition with
- the target state \a targetState.
-*/
-QList<QAbstractAnimation *> QStateMachine::defaultAnimationsForTargetState(QAbstractState *targetState) const
-{
- Q_D(const QStateMachine);
- return d->defaultAnimationsForTarget.values(targetState);
-}
-
-/*!
- Removes \a animation from the list of default animations for the target state
- \a targetState.
-*/
-void QStateMachine::removeDefaultAnimationForTargetState(QAbstractState *targetState,
- QAbstractAnimation *animation)
-{
- Q_D(QStateMachine);
- d->defaultAnimationsForTarget.remove(targetState, animation);
-}
-
#endif // QT_NO_ANIMATION
diff --git a/src/corelib/statemachine/qstatemachine.h b/src/corelib/statemachine/qstatemachine.h
index 3ad215b..bbe85e2 100644
--- a/src/corelib/statemachine/qstatemachine.h
+++ b/src/corelib/statemachine/qstatemachine.h
@@ -114,14 +114,6 @@ public:
void addDefaultAnimation(QAbstractAnimation *animation);
QList<QAbstractAnimation *> defaultAnimations() const;
void removeDefaultAnimation(QAbstractAnimation *animation);
-
- void addDefaultAnimationForSourceState(QAbstractState *sourceState, QAbstractAnimation *animation);
- QList<QAbstractAnimation *> defaultAnimationsForSourceState(QAbstractState *sourceState) const;
- void removeDefaultAnimationForSourceState(QAbstractState *sourceState, QAbstractAnimation *animation);
-
- void addDefaultAnimationForTargetState(QAbstractState *targetState, QAbstractAnimation *animation);
- QList<QAbstractAnimation *> defaultAnimationsForTargetState(QAbstractState *targetState) const;
- void removeDefaultAnimationForTargetState(QAbstractState *targetState, QAbstractAnimation *animation);
#endif // QT_NO_ANIMATION
QStateMachine::RestorePolicy globalRestorePolicy() const;