mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Support Animation Speed via Settings.
This is very userfull for a ( yet to be implemented ) preference dialog about the animation speed, so the user can enable / disable the animations or make it a bit faster for it's taste. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
466f160c01
commit
9f37bac07a
3 changed files with 19 additions and 11 deletions
|
|
@ -123,7 +123,7 @@ void DiveEventItem::recalculatePos(bool instant)
|
|||
qreal x = hAxis->posAtValue(internalEvent->time.seconds);
|
||||
qreal y = vAxis->posAtValue(depth);
|
||||
if (!instant)
|
||||
Animations::moveTo(this, x, y, 500);
|
||||
Animations::moveTo(this, x, y);
|
||||
else
|
||||
setPos(x, y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue