aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtqml.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-08 15:48:33 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-10 19:58:33 +0100
commit4f57d4eb32df52838129547be60b1a75d3f3356c (patch)
tree19f625c23ebd5ecdbe6cd9f30e71832f0df15d4a /sources/pyside6/PySide6/glue/qtqml.cpp
parent5b9320df2284b96dba4d5eec1857a797797187e6 (diff)
PySide6: Add a QmlAnonymous decorator
Split out a helper from the qmlElementMacro() to register (also preparing for uncreatable types) and add the decorator. Pick-to: 6.2 Change-Id: I0f3ebf6f31c141083440abcc9f1acd227ce046d7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> 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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtqml.cpp b/sources/pyside6/PySide6/glue/qtqml.cpp
index 4a8d72ca4..f4a54a55a 100644
--- a/sources/pyside6/PySide6/glue/qtqml.cpp
+++ b/sources/pyside6/PySide6/glue/qtqml.cpp
@@ -85,3 +85,7 @@ return %CONVERTTOPYTHON[%RETURN_TYPE](retval);
// @snippet qmlelement
%PYARG_0 = PySide::qmlElementMacro(%ARGUMENT_NAMES);
// @snippet qmlelement
+
+// @snippet qmlanonymous
+%PYARG_0 = PySide::qmlAnonymousMacro(%ARGUMENT_NAMES);
+// @snippet qmlanonymous