20 #include <QGraphicsSceneMouseEvent> 61 if (event->key() == Qt::Key_Escape)
66 event->setAccepted(
true);
~DiagramEventInterface() override=0
virtual void keyPressEvent(QKeyEvent *event)
DiagramEventInterface::keyPressEvent By default, press escape key abort the curent action...
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
virtual bool isRunning() const
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
DiagramEventInterface(Diagram *diagram)
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
virtual void keyReleaseEvent(QKeyEvent *event)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)