diff options
Diffstat (limited to 'qt-ui/profile/animationfunctions.cpp')
-rw-r--r-- | qt-ui/profile/animationfunctions.cpp | 3 |
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); |