diff options
-rw-r--r-- | hyperui/draggablepreview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hyperui/draggablepreview.cpp b/hyperui/draggablepreview.cpp index 93f17dc..e59197b 100644 --- a/hyperui/draggablepreview.cpp +++ b/hyperui/draggablepreview.cpp @@ -149,9 +149,11 @@ QAbstractAnimation *DraggablePreview::createAnimation(int time, const char *slot QParallelAnimationGroup *result = new QParallelAnimationGroup(); QPropertyAnimation *posAnimation = new QPropertyAnimation(this, "pos"); + posAnimation->setEasingCurve(QEasingCurve::InSine); posAnimation->setDuration(time); QPropertyAnimation *scaleAnimation = new QPropertyAnimation(this, "scale"); + scaleAnimation->setEasingCurve(QEasingCurve::InSine); scaleAnimation->setDuration(time); result->addAnimation(posAnimation); |