From 318a0abf7f676ab36f0935c4881f67e52735a664 Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Sun, 28 Apr 2019 21:03:08 +0900 Subject: Fix for issue #9 - add include moc in proxy cpp Signed-off-by: Emanoil Kotsev Signed-off-by: Michele Calgaro --- src/tools/dbusxml2qt3/classgen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tools') 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; } -- cgit v1.2.1