aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtqml.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-09 13:31:22 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-15 08:48:44 +0000
commita421aab61ad03afa595aa0ba7e53d84b1edbe892 (patch)
tree0ff3173d7e051d5a93ad9e54a0785f2b9ddedc0f /sources/pyside6/PySide6/glue/qtqml.cpp
parentf160c0f1f2053029c118eb5818074f875a3776b4 (diff)
Add a QmlUncreatable decorator
Add a class type that stores the reason and registers the type in the call operator. This is then queried by the register type helper functions. Pick-to: 6.2 Task-number: PYSIDE-1709 Change-Id: I0dd0c4c1e05e6e0ee6f22a6947b85546fc373fb9 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtqml.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtqml.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtqml.cpp b/sources/pyside6/PySide6/glue/qtqml.cpp
index 44f3dc653..73b44faf2 100644
--- a/sources/pyside6/PySide6/glue/qtqml.cpp
+++ b/sources/pyside6/PySide6/glue/qtqml.cpp
@@ -74,6 +74,7 @@ int %0 = PySide::qmlRegisterType(%ARGUMENT_NAMES, false);
// @snippet init
initQtQmlListProperty(module);
+initQmlUncreatable(module);
initQtQmlVolatileBool(module);
PySide::SignalManager::setQmlMetaCallErrorHandler(PySide::qmlMetaCallErrorHandler);
// @snippet init