aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/registersingletontype.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/registersingletontype.qml')
-rw-r--r--sources/pyside6/tests/QtQml/registersingletontype.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtQml/registersingletontype.qml b/sources/pyside6/tests/QtQml/registersingletontype.qml
new file mode 100644
index 000000000..31ca7fe4d
--- /dev/null
+++ b/sources/pyside6/tests/QtQml/registersingletontype.qml
@@ -0,0 +1,14 @@
+// Copyright (C) 2020 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+import QtQuick 2.0
+import Singletons 1.0
+
+Item {
+ Component.onCompleted: {
+ SingletonQObjectCallback.data += SingletonQObjectNoCallback.data
+ + SingletonQJSValue.data
+ + SingletonInstance.data
+ + DecoratedSingletonQObject.data + DecoratedSingletonWithCreate.data;
+ }
+}