diff options
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)); |