summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
Diffstat (limited to 'generator')
-rw-r--r--generator/overloaddata.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/generator/overloaddata.cpp b/generator/overloaddata.cpp
index 42b04fdf..f8fd831f 100644
--- a/generator/overloaddata.cpp
+++ b/generator/overloaddata.cpp
@@ -295,7 +295,7 @@ void OverloadData::sortNextOverloads()
} else if (checkQVariant && targetTypeEntryName != "QVariant") {
if (!graph.containsEdge(qvariantIndex, sortData.map[targetTypeEntryName])) // Avoid cyclic dependency.
graph.addEdge(sortData.map[targetTypeEntryName], qvariantIndex);
- } else if (checkQString && ov->argType()->indirections() > 0 && targetTypeEntryName != "QString") {
+ } else if (checkQString && ov->argType()->indirections() > 0 && targetTypeEntryName != "QString" && targetTypeEntryName != "QByteArray") {
if (!graph.containsEdge(qstringIndex, sortData.map[targetTypeEntryName])) // Avoid cyclic dependency.
graph.addEdge(sortData.map[targetTypeEntryName], qstringIndex);
}
@@ -309,6 +309,10 @@ void OverloadData::sortNextOverloads()
}
}
+ // QByteArray args need to be checked after QString args
+ if (sortData.map.contains("QString") && sortData.map.contains("QByteArray"))
+ graph.addEdge(sortData.map["QString"], sortData.map["QByteArray"]);
+
foreach(OverloadData* ov, m_nextOverloadData) {
const AbstractMetaType* targetType = ov->argType();
if (!targetType->isEnum())