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

@@ -23,15 +23,14 @@
#include <QKeyEvent>
DiagramEventInterface::DiagramEventInterface(Diagram *diagram) :
m_diagram(diagram),
m_running(false),
m_abort(false)
QObject{diagram},
m_diagram{diagram}
{
m_diagram -> clearSelection();
}
DiagramEventInterface::~DiagramEventInterface()
{};
{}
void DiagramEventInterface::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
Q_UNUSED (event);