mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Reveal: Add an easing curve
Just to try different effects. InSine seems the most pleasing.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user