summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmlecmascriptdatamodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scxml/qscxmlecmascriptdatamodel.h')
-rw-r--r--src/scxml/qscxmlecmascriptdatamodel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scxml/qscxmlecmascriptdatamodel.h b/src/scxml/qscxmlecmascriptdatamodel.h
index 658df6d..16f29d4 100644
--- a/src/scxml/qscxmlecmascriptdatamodel.h
+++ b/src/scxml/qscxmlecmascriptdatamodel.h
@@ -40,9 +40,14 @@
#ifndef QSCXMLECMASCRIPTDATAMODEL_H
#define QSCXMLECMASCRIPTDATAMODEL_H
+#include <QtScxml/qscxmlglobals.h>
#include <QtScxml/qscxmldatamodel.h>
QT_BEGIN_NAMESPACE
+
+// We cannot use QT_REQUIRE_CONFIG here, because the feature name contains a dash.
+#if QT_CONFIG(scxml_ecmascriptdatamodel)
+
class QScxmlEcmaScriptDataModelPrivate;
class Q_SCXML_EXPORT QScxmlEcmaScriptDataModel: public QScxmlDataModel
{
@@ -68,6 +73,8 @@ public:
bool setScxmlProperty(const QString &name, const QVariant &value, const QString &context) override;
};
+#endif // QT_CONFIG(scxml_ecmascriptdatamodel)
+
QT_END_NAMESPACE
#endif // QSCXMLECMASCRIPTDATAMODEL_H