aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index c4e437073..0cd479911 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -220,8 +220,7 @@ void AbstractMetaBuilder::traverseStreamOperator(FunctionModelItem item)
AbstractMetaClass *streamClass = argumentToClass(arguments.at(0));
AbstractMetaClass *streamedClass = argumentToClass(arguments.at(1));
- if (streamClass && streamedClass
- && (streamClass->name() == "QDataStream" || streamClass->name() == "QTextStream")) {
+ if (streamClass && streamedClass && (streamClass->isStream())) {
AbstractMetaClass *oldCurrentClass = m_currentClass;
m_currentClass = streamedClass;
AbstractMetaFunction *streamFunction = traverseFunction(item);