mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Reveal: Add an easing curve
Just to try different effects. InSine seems the most pleasing.
This commit is contained in:
@@ -56,6 +56,7 @@ HistogramWindow::HistogramWindow(MainWindow *mainWindow, bool rangemode) : GcWin
|
||||
|
||||
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