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>
This commit is contained in:
Tomaz Canabrava 2014-02-05 14:53:57 -02:00 committed by Dirk Hohndel
parent 19585d9a13
commit 40cb57b202
5 changed files with 54 additions and 2 deletions

View file

@ -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