diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2019-04-28 21:03:08 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-28 21:03:08 +0900 |
commit | 318a0abf7f676ab36f0935c4881f67e52735a664 (patch) | |
tree | 8af229d6eea070b2aac4d9b3f557fbb991123cf0 /src/tools | |
parent | 755938dd30b7153447fac58bc935e0dbd6f94fc7 (diff) | |
download | dbus-1-tqt-318a0abf7f676ab36f0935c4881f67e52735a664.tar.gz dbus-1-tqt-318a0abf7f676ab36f0935c4881f67e52735a664.zip |
Fix for issue #9 - add include moc in proxy cpp
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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; } |