diff options
-rw-r--r-- | generator/shiboken/cppgenerator.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generator/shiboken/cppgenerator.cpp b/generator/shiboken/cppgenerator.cpp index b0753bcd7..7138b56ef 100644 --- a/generator/shiboken/cppgenerator.cpp +++ b/generator/shiboken/cppgenerator.cpp @@ -4444,8 +4444,16 @@ void CppGenerator::writeInitQtMetaTypeFunctionBody(QTextStream& s, const Abstrac } if (canBeValue) { - foreach (QString name, nameVariants) + foreach (QString name, nameVariants) { + if (name == "iterator") { + ReportHandler::warning(QString("%1:%2 FIXME:\n" + " The code tried to qRegisterMetaType the unqualified name " + "'iterator'. This is currently fixed by a hack(ct) and needs improvement!") + .arg(__FILE__).arg(__LINE__)); + continue; + } s << INDENT << "qRegisterMetaType< ::" << className << " >(\"" << name << "\");" << endl; + } } } |