Created a cross that follows the mouse on the dive planner.

Created a cross that follows the mouse on the dive planner,
this will help the user to know where it is placing the stop.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-06-20 13:53:12 -03:00
parent b1c526ddb4
commit 88e7aa36be
2 changed files with 25 additions and 2 deletions

View file

@ -12,13 +12,14 @@ protected:
virtual void mouseDoubleClickEvent(QMouseEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void resizeEvent(QResizeEvent* event);
virtual void mouseMoveEvent(QMouseEvent* event);
void clear_generated_deco();
void create_deco_stop();
private:
DivePlanner(QWidget* parent = 0);
QList<QGraphicsLineItem*> lines;
QList<QGraphicsEllipseItem*> handles;
QGraphicsLineItem *verticalLine;
QGraphicsLineItem *horizontalLine;
};
#endif