diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-05 15:25:24 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-06 06:29:55 -0800 |
commit | ed230f8aacb2d1bc4076f927240998ca9f1fa8b6 (patch) | |
tree | cb6c839c632ba83e401044a0a7a8720809b20902 /qt-ui/profile/divetooltipitem.cpp | |
parent | 40cb57b2020321a0e3c898dac2c54daab3f22026 (diff) | |
download | subsurface-ed230f8aacb2d1bc4076f927240998ca9f1fa8b6.tar.gz |
Make the Tooltip Item work on the new profile.
Just refresh the tooltip item.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.cpp')
-rw-r--r-- | qt-ui/profile/divetooltipitem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index ffe22a820..ca355b710 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -8,6 +8,7 @@ #include <QGraphicsScene> #include <QSettings> #include <QGraphicsView> +#include <QDebug> #define PORT_IN_PROGRESS 1 #ifdef PORT_IN_PROGRESS @@ -223,7 +224,8 @@ void ToolTipItem::setTimeAxis(DiveCartesianAxis* axis) void ToolTipItem::refresh(const QPointF& pos) { clear(); - int time = timeAxis->posAtValue( pos.x() ); + int time = timeAxis->valueAt( pos ); + qDebug() << "time" << time; char buffer[500]; get_plot_details_new(&pInfo, time, buffer, 500); addToolTip(QString(buffer)); |