summaryrefslogtreecommitdiffstats
path: root/hyperui
diff options
context:
space:
mode:
authorAdriano Rezende <adriano.rezende@openbossa.org>2009-10-29 10:45:40 -0300
committerAdriano Rezende <adriano.rezende@openbossa.org>2009-10-29 18:25:06 -0300
commitd0c2a8e460f7ba1475c365c593f06b0184329543 (patch)
tree74563b98cb3147449e83229a2dd7746f0d96f56b /hyperui
parentbade920d37f84f90c0d2845da983b199ef87e138 (diff)
Adjusted PageView animation to use easing
Diffstat (limited to 'hyperui')
-rw-r--r--hyperui/pageview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/hyperui/pageview.cpp b/hyperui/pageview.cpp
index 9b9850c..219dd83 100644
--- a/hyperui/pageview.cpp
+++ b/hyperui/pageview.cpp
@@ -116,7 +116,7 @@ void PageSlot::setPageSlide(qreal percent)
// apply linear pos values
const int sw = size().width();
const qreal sx = (m_isLeft ? -sw : sw);
- setPos(sx * (m_isOut ? percent : 1 - percent), pos().y());
+ setX(sx * (m_isOut ? percent : 1 - percent));
}
}
@@ -149,7 +149,8 @@ QAbstractAnimation *PageSlot::createAnimation(MovementType type)
}
QPropertyAnimation *animation = new QPropertyAnimation(this, "pageSlide");
- animation->setDuration(400);
+ animation->setDuration(500);
+ animation->setEasingCurve(QEasingCurve::OutQuart);
animation->setStartValue(0.0);
animation->setEndValue(1.0);