summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-27 01:05:19 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-27 01:05:19 (GMT)
commit7d33c015c9f936eaf5836230a199eab9399b3f58 (patch)
tree56de67b7d512d70291591e61c30bf9c72d34789e /src/declarative/util
parenta488a04e5a5af4255d560d5dfa6423caa48ed5f3 (diff)
parentbaeb25062194c9ddc36c4536662de46b6b09cd68 (diff)
downloadQt-7d33c015c9f936eaf5836230a199eab9399b3f58.zip
Qt-7d33c015c9f936eaf5836230a199eab9399b3f58.tar.gz
Qt-7d33c015c9f936eaf5836230a199eab9399b3f58.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: doc/src/declarative/anchor-layout.qdoc
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmlanimation.cpp6
-rw-r--r--src/declarative/util/qmlanimation.h1
-rw-r--r--src/declarative/util/qmlstate.cpp4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index 6cc6db7..cbddb91 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -407,12 +407,12 @@ void QmlAbstractAnimation::setGroup(QmlAnimationGroup *g)
if (d->group == g)
return;
if (d->group)
- static_cast<QmlAnimationGroupPrivate *>(d->group->d_ptr)->animations.removeAll(this);
+ static_cast<QmlAnimationGroupPrivate *>(d->group->d_func())->animations.removeAll(this);
d->group = g;
- if (d->group && !static_cast<QmlAnimationGroupPrivate *>(d->group->d_ptr)->animations.contains(this))
- static_cast<QmlAnimationGroupPrivate *>(d->group->d_ptr)->animations.append(this);
+ if (d->group && !static_cast<QmlAnimationGroupPrivate *>(d->group->d_func())->animations.contains(this))
+ static_cast<QmlAnimationGroupPrivate *>(d->group->d_func())->animations.append(this);
if (d->group)
((QAnimationGroup*)d->group->qtAnimation())->addAnimation(qtAnimation());
diff --git a/src/declarative/util/qmlanimation.h b/src/declarative/util/qmlanimation.h
index 67a2045..a898be8 100644
--- a/src/declarative/util/qmlanimation.h
+++ b/src/declarative/util/qmlanimation.h
@@ -355,6 +355,7 @@ public:
virtual ~QmlAnimationGroup();
QmlList<QmlAbstractAnimation *>* animations();
+ friend class QmlAbstractAnimation;
};
class QmlSequentialAnimation : public QmlAnimationGroup
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index e7149d5..a17d16e 100644
--- a/src/declarative/util/qmlstate.cpp
+++ b/src/declarative/util/qmlstate.cpp
@@ -281,7 +281,7 @@ QmlStatePrivate::generateActionList(QmlStateGroup *group) const
QList<QmlState *> states = group->states();
for (int ii = 0; ii < states.count(); ++ii)
if (states.at(ii)->name() == extends)
- applyList = static_cast<QmlStatePrivate*>(states.at(ii)->d_ptr)->generateActionList(group);
+ applyList = static_cast<QmlStatePrivate*>(states.at(ii)->d_func())->generateActionList(group);
}
foreach(QmlStateOperation *op, operations)
@@ -330,7 +330,7 @@ void QmlState::apply(QmlStateGroup *group, QmlTransition *trans, QmlState *rever
if (revert) {
QmlStatePrivate *revertPrivate =
- static_cast<QmlStatePrivate*>(revert->d_ptr);
+ static_cast<QmlStatePrivate*>(revert->d_func());
d->revertList = revertPrivate->revertList;
revertPrivate->revertList.clear();
}