summaryrefslogtreecommitdiffstats
path: root/qt-ui
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
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')
-rw-r--r--qt-ui/printlayout.cpp1
-rw-r--r--qt-ui/profile/diveprofileitem.cpp1
-rw-r--r--qt-ui/profile/divetooltipitem.cpp17
-rw-r--r--qt-ui/profile/divetooltipitem.h1
4 files changed, 0 insertions, 20 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index b84f2ecea..64762cb2c 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -6,7 +6,6 @@
#include <QTableView>
#include <QHeaderView>
#include "mainwindow.h"
-#include "profilegraphics.h"
#include "../dive.h"
#include "../display.h"
#include "printdialog.h"
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index 77db58eca..454fab0c9 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -5,7 +5,6 @@
#include "divetextitem.h"
#include "profile.h"
#include "dive.h"
-#include "profilegraphics.h"
#include "preferences.h"
#include "helpers.h"
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) {
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h
index 566b21770..1f84d0664 100644
--- a/qt-ui/profile/divetooltipitem.h
+++ b/qt-ui/profile/divetooltipitem.h
@@ -41,7 +41,6 @@ public:
void expand();
void clear();
void addToolTip(const QString &toolTip, const QIcon &icon = QIcon());
- void refresh(struct graphics_context *gc, QPointF pos);
void refresh(const QPointF &pos);
bool isExpanded() const;
void persistPos();