80 qmlExecuteDeferred(transition);
82 QQmlProperty defaultTarget(m_button, QLatin1String(
"progress"));
83 QQmlListProperty<QQuickAbstractAnimation> animations = transition->animations();
84 const int count = animations.count(&animations);
85 for (
int i = 0; i < count; ++i) {
86 QQuickAbstractAnimation *anim = animations.at(&animations, i);
87 anim->setDefaultTarget(defaultTarget);
90 QList<QQuickStateAction> actions;
91 actions << QQuickStateAction(m_button, QLatin1String(
"progress"), progress);
92 QQuickTransitionManager::transition(actions, transition, m_button);