2 #include <score/statemachine/StateMachineUtils.hpp>
4 #include <QApplication>
5 #include <QGraphicsItem>
6 #include <QGraphicsScene>
7 #include <QStateMachine>
9 template <
typename Coordinates>
16 if(!localSM().isRunning())
22 if(localSM().isRunning())
29 virtual void on_cancel()
32 QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
35 const QGraphicsScene& scene()
const {
return m_scene; }
36 QStateMachine& localSM() {
return m_localSM; }
44 QGraphicsItem* itemUnderMouse(
const QPointF& point)
const
46 return m_scene.itemAt(point, QTransform());
50 const QGraphicsScene& m_scene;
51 QStateMachine m_localSM;
Definition: StateMachineUtils.hpp:18