From 2089c124a582ac95c4e9adb9362446572ff791f7 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 8 May 2013 07:22:23 -0300 Subject: Work on the tooltips - WIP. Signed-off-by: Tomaz Canabrava --- qt-ui/profilegraphics.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'qt-ui/profilegraphics.h') diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 1c9238bee..ca1eb8983 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -70,12 +70,6 @@ class EventItem : public QGraphicsPolygonItem { public: explicit EventItem(QGraphicsItem* parent = 0); - void addToolTip(const QString& text,const QIcon& icon = QIcon()); - void setToolTipController(ToolTipItem *controller); - -protected: - void hoverEnterEvent(QGraphicsSceneHoverEvent* event); - void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); private: ToolTipItem *controller; @@ -89,6 +83,7 @@ Q_OBJECT public: ProfileGraphicsView(QWidget* parent = 0); void plot(struct dive *d); + bool eventFilter(QObject* obj, QEvent* event); protected: void resizeEvent(QResizeEvent *event); -- cgit v1.2.3-70-g09d2