aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_static_qml_module/MyElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cmake/test_static_qml_module/MyElement.h')
-rw-r--r--tests/auto/cmake/test_static_qml_module/MyElement.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_static_qml_module/MyElement.h b/tests/auto/cmake/test_static_qml_module/MyElement.h
new file mode 100644
index 0000000000..118606aa33
--- /dev/null
+++ b/tests/auto/cmake/test_static_qml_module/MyElement.h
@@ -0,0 +1,20 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#pragma once
+
+#include <QObject>
+#include <QtQml>
+
+class MyElement : public QObject
+{
+ Q_OBJECT
+ QML_ELEMENT
+ Q_PROPERTY(QString someProp MEMBER m_someProp)
+public:
+ MyElement() = default;
+ ~MyElement() = default;
+
+private:
+ QString m_someProp;
+};