summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/divetooltipitem.cpp2
-rw-r--r--profile-widget/profilewidget2.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/profile-widget/divetooltipitem.cpp b/profile-widget/divetooltipitem.cpp
index d1bda0a01..0d3e6728c 100644
--- a/profile-widget/divetooltipitem.cpp
+++ b/profile-widget/divetooltipitem.cpp
@@ -240,8 +240,6 @@ void ToolTipItem::refresh(const QPointF &pos)
refreshTime.start();
int time = lrint(timeAxis->valueAt(pos));
- if (time == lastTime)
- return;
lastTime = time;
clear();
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 3b932144b..846465672 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -828,6 +828,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force, bool doClearPictures)
clearPictures();
else
plotPictures();
+
+ toolTipItem->refresh(mapToScene(mapFromGlobal(QCursor::pos())));
#endif
// OK, how long did this take us? Anything above the second is way too long,
@@ -1066,7 +1068,8 @@ void ProfileWidget2::scrollViewTo(const QPoint &pos)
void ProfileWidget2::mouseMoveEvent(QMouseEvent *event)
{
QPointF pos = mapToScene(event->pos());
- toolTipItem->refresh(pos);
+ toolTipItem->refresh(mapToScene(mapFromGlobal(QCursor::pos())));
+
if (zoomLevel == 0) {
QGraphicsView::mouseMoveEvent(event);
} else {