Reveal: Add an easing curve

Just to try different effects. InSine seems the most pleasing.
This commit is contained in:
Mark Liversedge
2013-01-25 18:13:47 +00:00
parent ea606c240d
commit fe2f96e25c
5 changed files with 5 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ ScatterWindow::ScatterWindow(MainWindow *parent, const QDir &home) :
revealAnim = new QPropertyAnimation(revealControls, "pos");
revealAnim->setDuration(500);
revealAnim->setEasingCurve(QEasingCurve(QEasingCurve::InSine));
revealAnim->setKeyValueAt(0,QPoint(2,-50));
revealAnim->setKeyValueAt(0.5,QPoint(2,15));
revealAnim->setKeyValueAt(1,QPoint(2,20));