summaryrefslogtreecommitdiffstats
path: root/examples/scxml/trafficlight-qml-static/trafficlight-qml.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scxml/trafficlight-qml-static/trafficlight-qml.h')
-rw-r--r--examples/scxml/trafficlight-qml-static/trafficlight-qml.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/scxml/trafficlight-qml-static/trafficlight-qml.h b/examples/scxml/trafficlight-qml-static/trafficlight-qml.h
new file mode 100644
index 0000000..ac309bd
--- /dev/null
+++ b/examples/scxml/trafficlight-qml-static/trafficlight-qml.h
@@ -0,0 +1,20 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#ifndef TRAFFICLIGHT_QML
+#define TRAFFICLIGHT_QML
+
+#include "statemachine.h"
+
+#include <QtQml/qqml.h>
+#include <QtCore/qobject.h>
+
+struct TrafficLightStateMachineRegistration
+{
+ Q_GADGET
+ QML_FOREIGN(TrafficLightStateMachine)
+ QML_NAMED_ELEMENT(TrafficLightStateMachine)
+ QML_ADDED_IN_VERSION(1, 0)
+};
+
+#endif // TRAFFICLIGHT_QML