summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetooltipitem.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-03-07 13:31:47 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 08:56:06 -0800
commit00c97e710f0090b3a2a8d5fe5b92e5ac0207a4b9 (patch)
tree7643d93d7cfa5ed3012e71ba2c2269f2c32c851c /qt-ui/profile/divetooltipitem.cpp
parent8f43ad8100c779b802586394f08d2572911d4d15 (diff)
downloadsubsurface-00c97e710f0090b3a2a8d5fe5b92e5ac0207a4b9.tar.gz
Remove a Lot of Dead Code.
This is just removal of dead code from the old profile, probably there's still a bit more to remove, but this is a very good cleanup already. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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) {