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:
Tomaz Canabrava 2014-03-11 17:27:05 -03:00 committed by Dirk Hohndel
parent 466f160c01
commit 9f37bac07a
3 changed files with 19 additions and 11 deletions

View file

@ -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);
}