@@ -29,6 +29,7 @@ class ProjectLoader : public QObject
2929 Q_PROPERTY (unsigned int stageHeight READ stageHeight WRITE setStageHeight NOTIFY stageHeightChanged)
3030 Q_PROPERTY (int cloneLimit READ cloneLimit WRITE setCloneLimit NOTIFY cloneLimitChanged)
3131 Q_PROPERTY (bool spriteFencing READ spriteFencing WRITE setSpriteFencing NOTIFY spriteFencingChanged)
32+ Q_PROPERTY (bool eventLoopEnabled READ eventLoopEnabled WRITE setEventLoopEnabled NOTIFY eventLoopEnabledChanged)
3233
3334 public:
3435 explicit ProjectLoader (QObject *parent = nullptr );
@@ -69,6 +70,9 @@ class ProjectLoader : public QObject
6970 bool spriteFencing () const ;
7071 void setSpriteFencing (bool newSpriteFencing);
7172
73+ bool eventLoopEnabled () const ;
74+ void setEventLoopEnabled (bool newEventLoopEnabled);
75+
7276 signals:
7377 void fileNameChanged ();
7478 void loadStatusChanged ();
@@ -82,6 +86,7 @@ class ProjectLoader : public QObject
8286 void stageHeightChanged ();
8387 void cloneLimitChanged ();
8488 void spriteFencingChanged ();
89+ void eventLoopEnabledChanged ();
8590
8691 protected:
8792 void timerEvent (QTimerEvent *event) override ;
@@ -108,6 +113,7 @@ class ProjectLoader : public QObject
108113 unsigned int m_stageHeight = 360 ;
109114 int m_cloneLimit = 300 ;
110115 bool m_spriteFencing = true ;
116+ bool m_eventLoopEnabled = true ;
111117};
112118
113119} // namespace scratchcppgui
0 commit comments