summaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/generator.cpp b/generator.cpp
index 70f62e6..ee15d2f 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -193,9 +193,14 @@ void Generator::generate()
finishGeneration();
}
+bool Generator::shouldGenerateTypeEntry(const TypeEntry* type) const
+{
+ return type->codeGeneration() & TypeEntry::GenerateTargetLang;
+}
+
bool Generator::shouldGenerate(const AbstractMetaClass* metaClass) const
{
- return metaClass->typeEntry()->codeGeneration() & TypeEntry::GenerateTargetLang;
+ return shouldGenerateTypeEntry(metaClass->typeEntry());
}
void verifyDirectoryFor(const QFile &file)