diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-15 09:37:51 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-16 09:33:16 +0100 |
| commit | 671f9ed73ee174fe2ba96d7a1c2b267455ef367e (patch) | |
| tree | a0d4bbb196b06decbd274ba412fd241bcf18a97f /sources/pyside6/PySide6/glue/qtqml.cpp | |
| parent | 74fa311186c9355b43af7c4e6812d14e4fde332c (diff) | |
Add a QmlSingleton decorator
Add a simple decorator function that stores the type in a list
for the QmlElement decorator to use singleton registration.
Task-number: PYSIDE-1709
Pick-to: 6.2
Change-Id: I075d583404bd60dc52b84c23a3d09e50d32a5a3a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtqml.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/glue/qtqml.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtqml.cpp b/sources/pyside6/PySide6/glue/qtqml.cpp index 73b44faf2..d32265d2e 100644 --- a/sources/pyside6/PySide6/glue/qtqml.cpp +++ b/sources/pyside6/PySide6/glue/qtqml.cpp @@ -91,3 +91,7 @@ return %CONVERTTOPYTHON[%RETURN_TYPE](retval); // @snippet qmlanonymous %PYARG_0 = PySide::qmlAnonymousMacro(%ARGUMENT_NAMES); // @snippet qmlanonymous + +// @snippet qmlsingleton +%PYARG_0 = PySide::qmlSingletonMacro(%ARGUMENT_NAMES); +// @snippet qmlsingleton |
