Mercurial > projects > qtd
comparison generator/dgenerator.cpp @ 14:5015aede8edd
insert() for QPolygons
author | eldar |
---|---|
date | Thu, 14 May 2009 15:53:32 +0000 |
parents | e78566595089 |
children | cf8a415f3f32 |
comparison
equal
deleted
inserted
replaced
13:4faee409a98d | 14:5015aede8edd |
---|---|
2373 if (d_class->hasCloneOperator()) { | 2373 if (d_class->hasCloneOperator()) { |
2374 writeCloneFunction(s, d_class); | 2374 writeCloneFunction(s, d_class); |
2375 } | 2375 } |
2376 */ | 2376 */ |
2377 s << "}" << endl; | 2377 s << "}" << endl; |
2378 | |
2379 /* ---------------- injected free code ----------------*/ | |
2380 const ComplexTypeEntry *class_type = d_class->typeEntry(); | |
2381 Q_ASSERT(class_type); | |
2382 | |
2383 CodeSnipList code_snips = class_type->codeSnips(); | |
2384 foreach (const CodeSnip &snip, code_snips) { | |
2385 if (!d_class->isInterface() && snip.language == TypeSystem::TargetLangFreeCode) { | |
2386 s << endl; | |
2387 snip.formattedCode(s, INDENT); | |
2388 } | |
2389 } | |
2390 /* --------------------------------------------------- */ | |
2378 | 2391 |
2379 interfaces = d_class->interfaces(); | 2392 interfaces = d_class->interfaces(); |
2380 if (!interfaces.isEmpty()) { | 2393 if (!interfaces.isEmpty()) { |
2381 for (int i=0; i<interfaces.size(); ++i) { | 2394 for (int i=0; i<interfaces.size(); ++i) { |
2382 AbstractMetaClass *iface = interfaces.at(i); | 2395 AbstractMetaClass *iface = interfaces.at(i); |