summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetooltipitem.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-05 14:53:57 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-06 06:29:19 -0800
commit40cb57b2020321a0e3c898dac2c54daab3f22026 (patch)
tree940a07342e711edba2603d929ee6f9a1d61263f2 /qt-ui/profile/divetooltipitem.h
parent19585d9a135257a74f92471ee82bb56499aa0680 (diff)
downloadsubsurface-40cb57b2020321a0e3c898dac2c54daab3f22026.tar.gz
Adapt the ToolTip to work on the new profile
With this patch the tooltip is ready to work on the new profile, we just need to actually use it. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetooltipitem.h')
-rw-r--r--qt-ui/profile/divetooltipitem.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/profile/divetooltipitem.h b/qt-ui/profile/divetooltipitem.h
index 9f7b83656..8e9573e54 100644
--- a/qt-ui/profile/divetooltipitem.h
+++ b/qt-ui/profile/divetooltipitem.h
@@ -6,7 +6,9 @@
#include <QPair>
#include <QRectF>
#include <QIcon>
+#include "display.h"
+class DiveCartesianAxis;
class QGraphicsLineItem;
class QGraphicsSimpleTextItem;
class QGraphicsPixmapItem;
@@ -33,10 +35,13 @@ public:
void clear();
void addToolTip(const QString& toolTip, const QIcon& icon = QIcon());
void refresh(struct graphics_context* gc, QPointF pos);
- bool isExpanded();
+ void refresh(const QPointF& pos);
+ bool isExpanded() const;
void persistPos();
void readPos();
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
+ void setTimeAxis(DiveCartesianAxis *axis);
+ void setPlotInfo(const plot_info& plot);
public slots:
void setRect(const QRectF& rect);
@@ -49,6 +54,8 @@ private:
Status status;
QRectF rectangle;
QRectF nextRectangle;
+ DiveCartesianAxis *timeAxis;
+ plot_info pInfo;
};
#endif \ No newline at end of file