1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Added missing virtual destructors

This commit is contained in:
Martin Tůma 2018-03-08 00:57:09 +01:00
parent d6746bc444
commit a21464d98d
3 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class GraphItem : public QGraphicsObject
public: public:
GraphItem(const Graph &graph, GraphType type, QGraphicsItem *parent = 0); GraphItem(const Graph &graph, GraphType type, QGraphicsItem *parent = 0);
virtual ~GraphItem() {}
QPainterPath shape() const {return _shape;} QPainterPath shape() const {return _shape;}
QRectF boundingRect() const {return _shape.boundingRect();} QRectF boundingRect() const {return _shape.boundingRect();}

View File

@ -16,6 +16,7 @@ class GraphTab : public GraphView
public: public:
GraphTab(QWidget *parent = 0) : GraphView(parent) GraphTab(QWidget *parent = 0) : GraphView(parent)
{setFrameShape(QFrame::NoFrame);} {setFrameShape(QFrame::NoFrame);}
virtual ~GraphTab() {}
virtual QString label() const = 0; virtual QString label() const = 0;
virtual void loadData(const Data &data, const QList<PathItem *> &paths) = 0; virtual void loadData(const Data &data, const QList<PathItem *> &paths) = 0;

View File

@ -16,6 +16,7 @@ class Map : public QObject
public: public:
Map(QObject *parent = 0) : QObject(parent), _backgroundColor(Qt::white) {} Map(QObject *parent = 0) : QObject(parent), _backgroundColor(Qt::white) {}
virtual ~Map() {}
virtual const QString &name() const = 0; virtual const QString &name() const = 0;