Mercurial > projects > qtd
comparison generator/generator.cpp @ 257:17b5e13364b7 lifetime
(none)
author | maxter |
---|---|
date | Wed, 16 Sep 2009 13:56:02 +0000 |
parents | 073b9153ed8a |
children |
comparison
equal
deleted
inserted
replaced
256:b1abe7f57321 | 257:17b5e13364b7 |
---|---|
59 if (m_classes.size() == 0) { | 59 if (m_classes.size() == 0) { |
60 ReportHandler::warning(QString("%1: no java classes, skipping") | 60 ReportHandler::warning(QString("%1: no java classes, skipping") |
61 .arg(metaObject()->className())); | 61 .arg(metaObject()->className())); |
62 return; | 62 return; |
63 } | 63 } |
64 | |
65 { | |
66 FileOut fileOut("temp.txt"); | |
67 foreach (AbstractMetaClass *cls, m_classes) { | |
68 | |
69 fileOut.stream << cls->name(); | |
70 if (cls->typeEntry()->isValue()) | |
71 fileOut.stream << ", value"; | |
72 if (cls->isQObject()) | |
73 fileOut.stream << ", QObject"; | |
74 else if (cls->typeEntry()->isObject()) | |
75 fileOut.stream << ", object"; | |
76 if (cls->hasVirtualFunctions()) | |
77 fileOut.stream << ", polymorphic"; | |
78 fileOut.stream << endl; | |
79 | |
80 } | |
81 } | |
64 | 82 |
65 | 83 |
66 foreach (AbstractMetaClass *cls, m_classes) { | 84 foreach (AbstractMetaClass *cls, m_classes) { |
67 if (!shouldGenerate(cls)) | 85 if (!shouldGenerate(cls)) |
68 continue; | 86 continue; |