aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-08-22 16:05:38 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:12 -0300
commit126d5e91482f4951a327ef6dfd766ea41c0a4658 (patch)
tree03cfc9f4cb25039bcdf477fff3053fe81cb024cb
parent7f5a81448b4a9f1516bf3989c8faa16f38162f2b (diff)
Not print warning if the typedef used on signal is QFlags.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index a3044e06e..43919888a 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3221,7 +3221,7 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC
AbstractMetaType* metaType = arg->type();
QByteArray origType = SBK_NORMALIZED_TYPE(qPrintable(metaType->originalTypeDescription()));
QByteArray cppSig = SBK_NORMALIZED_TYPE(qPrintable(metaType->cppSignature()));
- if (origType != cppSig)
+ if ((origType != cppSig) && (!metaType->isFlags()))
ReportHandler::warning("Typedef used on signal " + metaClass->qualifiedCppName() + "::" + cppSignal->signature());
}
}