summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cppgenerator.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 3d0ee5f3..e8590413 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -1006,6 +1006,18 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
strArg = ptp->name().replace(QRegExp("^signed\\s+"), "");
if (strArg == "double")
strArg = "float";
+ } else if (argType->typeEntry()->isContainer()) {
+ strArg = argType->fullName();
+ if (strArg == "QList" || strArg == "QVector"
+ || strArg == "QLinkedList" || strArg == "QStack"
+ || strArg == "QQueue") {
+ strArg = "list";
+ } else if (strArg == "QMap" || strArg == "QHash"
+ || strArg == "QMultiMap" || strArg == "QMultiHash") {
+ strArg = "dict";
+ } else if (strArg == "QPair") {
+ strArg == "2-tuple";
+ }
} else {
strArg = argType->fullName();
}