aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-05-06 16:11:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-17 11:59:34 +0100
commite738f1a37b2de1b35146a694f38bf70e2fe03b45 (patch)
treebd4f302be874ed1e59a8a816fef2a718af0dcdb1 /sources/shiboken6/generator
parentb4144265b820a852ae7670edbee529b7a42818b1 (diff)
shiboken6: Add type behavior to SbkObjectType
Fill the existing fields and output it in dump(). This saves looking up the type in the type system file when analzying bugs. Query functions might be added later should a need arise. As a drive-by, output the ref count as well. Task-number: PYSIDE-1898 Task-number: PYSIDE-930 Change-Id: Ie5a43d7971dd82e7da1930216041efaccfb324f0 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/generator')
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index cf4903bd0..547a6d60e 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -5425,6 +5425,8 @@ void CppGenerator::writeClassRegister(TextStream &s,
wrapperFlags.append(QByteArrayLiteral("Shiboken::ObjectType::WrapperFlags::InnerClass"));
if (metaClass->deleteInMainThread())
wrapperFlags.append(QByteArrayLiteral("Shiboken::ObjectType::WrapperFlags::DeleteInMainThread"));
+ if (classTypeEntry->isValue())
+ wrapperFlags.append("Shiboken::ObjectType::WrapperFlags::Value"_ba);
if (wrapperFlags.isEmpty())
s << '0';
else