Better use of QObject inheritence

This commit is contained in:
joshua
2022-11-14 22:42:27 +01:00
parent 937afea351
commit e1cb55f218
2 changed files with 7 additions and 7 deletions

View File

@@ -19,6 +19,7 @@
#define DIAGRAMEVENTINTERFACE_H
#include <QObject>
#include <QPointer>
class QGraphicsSceneMouseEvent;
class QGraphicsSceneWheelEvent;
@@ -63,9 +64,9 @@ class DiagramEventInterface : public QObject
void finish(); //Emited when the interface finish is job.
protected:
Diagram *m_diagram;
bool m_running;
bool m_abort;
QPointer<Diagram> m_diagram;
bool m_running{false};
bool m_abort{false};
};
#endif // DIAGRAMEVENTINTERFACE_H