Mercurial > projects > qtd
comparison generator/generatorsetd.cpp @ 260:b5773ccab07d lifetime
closer
author | maxter |
---|---|
date | Fri, 18 Sep 2009 18:52:03 +0000 |
parents | ae06da58ec25 |
children |
comparison
equal
deleted
inserted
replaced
259:515d6e1c7b10 | 260:b5773ccab07d |
---|---|
215 generators << priGenerator; | 215 generators << priGenerator; |
216 contexts << "PriGenerator"; | 216 contexts << "PriGenerator"; |
217 | 217 |
218 generators << cointainerGenerator; | 218 generators << cointainerGenerator; |
219 contexts << "cointainerGenerator"; | 219 contexts << "cointainerGenerator"; |
220 | |
221 // qtd | |
222 // code for including classses in 1 module for avoiding circular imports | |
223 foreach (AbstractMetaClass *cls, builder.classes()) { | |
224 ComplexTypeEntry *ctype = const_cast<ComplexTypeEntry*>(cls->typeEntry()); | |
225 | |
226 if (!cls->isInterface() && cls->isAbstract()) | |
227 ctype->setAbstract(true); | |
228 | |
229 ctype->setIsPolymorphic(cls->isPolymorphic()); | |
230 | |
231 | |
232 foreach(QString child, ctype->includedClasses) { | |
233 ComplexTypeEntry *ctype_child = TypeDatabase::instance()->findComplexType(child); | |
234 ctype_child->addedTo = cls->name(); | |
235 } | |
236 | |
237 foreach (AbstractMetaFunction *function, cls->functions()) | |
238 function->checkStoreResult(); | |
239 } | |
220 | 240 |
221 for (int i=0; i<generators.size(); ++i) { | 241 for (int i=0; i<generators.size(); ++i) { |
222 Generator *generator = generators.at(i); | 242 Generator *generator = generators.at(i); |
223 ReportHandler::setContext(contexts.at(i)); | 243 ReportHandler::setContext(contexts.at(i)); |
224 | 244 |