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