mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
ab6aea73c1
This is still a bit bugged - the lines are going to the wrong end - most probaly I messed something on the math. I'll now fix the sizing issue then I'll try to make it behave in the proper way. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
21 lines
455 B
C++
21 lines
455 B
C++
#ifndef DIVEPLANNER_H
|
|
#define DIVEPLANNER_H
|
|
|
|
#include <QGraphicsView>
|
|
#include <QGraphicsPathItem>
|
|
|
|
class DivePlanner : public QGraphicsView {
|
|
Q_OBJECT
|
|
public:
|
|
static DivePlanner *instance();
|
|
protected:
|
|
virtual void mouseDoubleClickEvent(QMouseEvent* event);
|
|
void clear_generated_deco();
|
|
void create_deco_stop();
|
|
|
|
private:
|
|
DivePlanner(QWidget* parent = 0);
|
|
QList<QGraphicsLineItem*> lines;
|
|
QList<QGraphicsEllipseItem*> handles;
|
|
};
|
|
#endif
|