diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/dbusxml2qt3/classgen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp index f7985ad..910989a 100644 --- a/src/tools/dbusxml2qt3/classgen.cpp +++ b/src/tools/dbusxml2qt3/classgen.cpp @@ -102,6 +102,12 @@ static void closeNamespaces(const TQStringList& namespaces, TQTextStream& stream } } +static void writeIncludeMoc(const TQString& className, TQTextStream& stream) +{ + stream << "#include \"" << className.lower() << "Proxy.moc\"" << endl; + stream << endl; +} + static void writeIncludes(const TQString& description, const TQStringList& includes, TQTextStream& stream) { @@ -1056,6 +1062,8 @@ bool ClassGenerator::generateProxy(const Class& classData, closeNamespaces(classDataCopy.namespaces, sourceStream); + writeIncludeMoc(classData.name, sourceStream); + return true; } |