diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-04-11 11:16:30 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:20 -0300 |
commit | 001a416ffbc4808e2ba8a1c76d335eb504339673 (patch) | |
tree | 95541a701ed1c2c745434075936fe776009b3a15 /generator | |
parent | b9305d9ab242d81a807ba5d0007b0e8dd4feb3f4 (diff) |
Avoid register Abstract types on QMetaTypes to avoid problems in QML.
Fix bug #814.
Reviewer: Hugo Parente <hugo.lima@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator')
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index c15d311c6..f932c8447 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -3552,7 +3552,7 @@ void CppGenerator::writeInitQtMetaTypeFunctionBody(QTextStream& s, const Abstrac } const QString className = metaClass->qualifiedCppName(); - if (!metaClass->isNamespace()) { + if (!metaClass->isNamespace() && !metaClass->isAbstract()) { // Qt metatypes are registered only on their first use, so we do this now. const char* star = "*"; if (!metaClass->typeEntry()->isObject()) { |