diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-11 19:13:01 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 17:01:12 -0700 |
commit | e18f4dfdeecfb8fdc3cf7bcb7168d84613d4fc7b (patch) | |
tree | c498c5401d2601b3128499b30136997796b2f487 /qt-ui/profile/diveprofileitem.cpp | |
parent | 2171b981ac5a827e732cadefabf8a09762a8c45c (diff) | |
download | subsurface-e18f4dfdeecfb8fdc3cf7bcb7168d84613d4fc7b.tar.gz |
Code cleanup: removed bogus animation functions
All animations are now on the Animations namespace, which resulted in a
bit of code cleanup, which is nice.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.cpp')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index cc4989d33..1c8a13fb5 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -4,6 +4,7 @@ #include "graphicsview-common.h" #include "divetextitem.h" #include "profilewidget2.h" +#include "animationfunctions.h" #include "profile.h" #include "dive.h" #include "preferences.h" @@ -666,7 +667,7 @@ void MeanDepthLine::setAxis(DiveCartesianAxis *a) void MeanDepthLine::axisLineChanged() { DiveCartesianAxis *axis = qobject_cast<DiveCartesianAxis *>(sender()); - animateMoveTo(x(), axis->posAtValue(meanDepth)); + Animations::moveTo(this, x(), axis->posAtValue(meanDepth)); } void PartialPressureGasItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) |