Mercurial > projects > qtd
comparison generator/containergenerator.cpp @ 179:d69b58c01131
fix ArrayOps2 bug
author | eldar |
---|---|
date | Thu, 02 Jul 2009 11:39:57 +0000 |
parents | ae06da58ec25 |
children | 7664de4a55e5 |
comparison
equal
deleted
inserted
replaced
178:14a5201812fc | 179:d69b58c01131 |
---|---|
398 | 398 |
399 } | 399 } |
400 | 400 |
401 void ContainerGenerator::writeDContent2(QTextStream &s, AbstractMetaClass *cls) | 401 void ContainerGenerator::writeDContent2(QTextStream &s, AbstractMetaClass *cls) |
402 { | 402 { |
403 s << "module " << cls->package() << ".ArrayOps2;" << endl << endl; | 403 s << "module " << cls->package() << ".ArrayOps2;" << endl << endl |
404 << "import qt.QGlobal;" << endl << endl; | |
404 | 405 |
405 foreach(AbstractMetaType* arg_type, signalEntries[cls->package()]) { | 406 foreach(AbstractMetaType* arg_type, signalEntries[cls->package()]) { |
406 const TypeEntry *te = arg_type->instantiations().first()->typeEntry(); | 407 const TypeEntry *te = arg_type->instantiations().first()->typeEntry(); |
407 if(!te->isPrimitive() && !te->isString()) | 408 if(!te->isPrimitive() && !te->isString()) |
408 writeImportString(s, te); | 409 writeImportString(s, te); |