aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml')
-rw-r--r--src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml b/src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml
new file mode 100644
index 0000000000..6d7a748f2a
--- /dev/null
+++ b/src/qml/doc/snippets/cmake/qt_target_qml_sources/FunnySingleton.qml
@@ -0,0 +1,9 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+//! [0]
+pragma Singleton
+import QtQml
+
+QtObject {}
+//! [0]