summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetooltipitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/divetooltipitem.cpp')
-rw-r--r--qt-ui/profile/divetooltipitem.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp
index 0442f0793..c11266a5a 100644
--- a/qt-ui/profile/divetooltipitem.cpp
+++ b/qt-ui/profile/divetooltipitem.cpp
@@ -37,23 +37,6 @@ void ToolTipItem::addToolTip(const QString &toolTip, const QIcon &icon)
expand();
}
-void ToolTipItem::refresh(struct graphics_context *gc, QPointF pos)
-{
- clear();
- int time = (pos.x() * gc->maxtime) / gc->maxx;
- struct membuffer mb = { 0 };
-
- get_plot_details(gc, time, &mb);
- addToolTip(QString::fromUtf8(mb.buffer, mb.len));
- free_buffer(&mb);
-
- QList<QGraphicsItem *> items = scene()->items(pos, Qt::IntersectsItemShape, Qt::DescendingOrder, transform());
- Q_FOREACH(QGraphicsItem * item, items) {
- if (!item->toolTip().isEmpty())
- addToolTip(item->toolTip());
- }
-}
-
void ToolTipItem::clear()
{
Q_FOREACH(ToolTip t, toolTips) {