aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqmlextended.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-26 14:56:39 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-01 16:04:42 +0200
commit60d5a5b05041e05556becbf1ce6efada6e477421 (patch)
tree694958029de8b97c03a8a907ff8a3f4c1e649846 /sources/pyside6/libpysideqml/pysideqmlextended.cpp
parentd2f9814c62ee6904cdcbc66c03fdde3f476fa34b (diff)
libpyside: Add qobjectType() to return the Python type QObject
Set it directly instead of looking it up via converters, which is a step towards decoupling the converters from the per-interpreter types and saves dict lookups. Task-number: PYSIDE-3155 Change-Id: I31a71d1a9d02f1247e04c57de2c2901746221b4f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqmlextended.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlextended.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlextended.cpp b/sources/pyside6/libpysideqml/pysideqmlextended.cpp
index f26fb9f89..cf08c1889 100644
--- a/sources/pyside6/libpysideqml/pysideqmlextended.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlextended.cpp
@@ -7,6 +7,7 @@
#include <pyside_p.h>
#include <pysideclassdecorator_p.h>
+#include <pysideqobject.h>
#include <autodecref.h>
#include <gilstate.h>
@@ -110,7 +111,7 @@ static QObject *extensionFactory(QObject *o)
return nullptr;
}
- if (PyType_IsSubtype(pyResult->ob_type, qObjectType()) == 0) {
+ if (PyType_IsSubtype(pyResult->ob_type, PySide::qObjectType()) == 0) {
qWarning("QmlExtended: Extension objects must inherit QObject, got %s.",
PepType_GetFullyQualifiedNameStr(pyResult->ob_type));
return nullptr;