summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/cppgenerator.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index b95d1cf2..0c99b09c 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -2991,6 +2991,13 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC
QString cppSignature = QMetaObject::normalizedType(qPrintable(type->cppSignature()));
QString originalSignature = QMetaObject::normalizedType(qPrintable(type->originalTypeDescription()));
+ if (!a->defaultValueExpression().isEmpty()) {
+ QString sig = QMetaObject::normalizedSignature(signature.toAscii());
+ if (sig.isEmpty())
+ sig = "void";
+ signatures[cppSignal->name()].append(sig);
+ }
+
if ((cppSignature != originalSignature) && !knowTypes.contains(originalSignature)) {
knowTypes << originalSignature;
s << INDENT << "Shiboken::TypeResolver::createValueTypeResolver<"