Work on the tooltips - WIP.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-08 07:22:23 -03:00 committed by Dirk Hohndel
parent 76e1436f68
commit 2089c124a5
2 changed files with 15 additions and 29 deletions

View file

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