aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/animationfunctions.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-07 16:54:12 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 07:19:58 -0800
commit266daa326d9a2de21c8f119864d7030526fec14e (patch)
treec06b48679e24226487861e04f2ed36768e23c626 /qt-ui/profile/animationfunctions.cpp
parentd66e4b5236441f3ac83a314055e4981571197d86 (diff)
downloadsubsurface-266daa326d9a2de21c8f119864d7030526fec14e.tar.gz
Start the profile state
The setup of the item positions for the profile state should be done here. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/animationfunctions.cpp')
-rw-r--r--qt-ui/profile/animationfunctions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/animationfunctions.cpp b/qt-ui/profile/animationfunctions.cpp
index d0c7af559..917be3858 100644
--- a/qt-ui/profile/animationfunctions.cpp
+++ b/qt-ui/profile/animationfunctions.cpp
@@ -21,9 +21,10 @@ void animDelete(QObject* obj)
animation->start(QAbstractAnimation::DeleteWhenStopped);
}
-void moveTo(QObject* obj, qreal x, qreal y)
+void moveTo(QObject* obj, qreal x, qreal y, int msecs)
{
QPropertyAnimation *animation = new QPropertyAnimation(obj, "pos");
+ animation->setDuration(msecs);
animation->setStartValue(obj->property("pos").toPointF());
animation->setEndValue(QPointF(x, y));
animation->start(QAbstractAnimation::DeleteWhenStopped);