mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Work on the tooltips - WIP.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
76e1436f68
commit
2089c124a5
2 changed files with 15 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue