diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2020-05-26 22:42:52 +0200 |
---|---|---|
committer | Emanoil Kotsev <deloptes@gmail.com> | 2020-05-26 22:42:52 +0200 |
commit | 45bdbff13b383dd99f9019a3d6dda6fcda6a3b11 (patch) | |
tree | 13333895b34f1450891d45655cce7c97d983a6f0 /src | |
parent | 651c4a912d53fb46c65f14b5c684f538b8528077 (diff) | |
download | dbus-1-tqt-45bdbff13b383dd99f9019a3d6dda6fcda6a3b11.tar.gz dbus-1-tqt-45bdbff13b383dd99f9019a3d6dda6fcda6a3b11.zip |
Fix #23 dbusxml2qt3 with multiple interfaces
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/dbusxml2qt3/methodgen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/dbusxml2qt3/methodgen.cpp b/src/tools/dbusxml2qt3/methodgen.cpp index f86f762..48cf704 100644 --- a/src/tools/dbusxml2qt3/methodgen.cpp +++ b/src/tools/dbusxml2qt3/methodgen.cpp @@ -553,6 +553,7 @@ static void writeNodeIntrospection(const Class& classData, stream << "{" << endl; stream << " TQDomDocument doc;" << endl; + stream << " TQDomElement interfaceElement;" << endl; stream << " TQDomElement nodeElement = doc.createElement(\"node\");" << endl; stream << " if (!objectPath.isEmpty() && objectPath.compare(\"/\") != 0)" << endl; stream << " {" << endl; @@ -560,7 +561,7 @@ static void writeNodeIntrospection(const Class& classData, stream << " }" << endl; stream << " // Introspectable is added by default. Show it only if there is interface" << endl; stream << " if (interfaces.count()>1) {" << endl; - stream << " TQDomElement interfaceElement = doc.createElement(\"interface\");" + stream << " interfaceElement = doc.createElement(\"interface\");" << endl; stream << " org::freedesktop::DBus::IntrospectableInterface" << "::buildIntrospectionData(interfaceElement);" << endl; @@ -574,7 +575,7 @@ static void writeNodeIntrospection(const Class& classData, if ((*it).dbusName == "org.freedesktop.DBus.Introspectable") continue; stream << endl; - stream << " TQDomElement interfaceElement = doc.createElement(\"interface\");" + stream << " interfaceElement = doc.createElement(\"interface\");" << endl; stream << " " << (*it).namespaces.join("::") + "::" + (*it).name << "Interface::buildIntrospectionData(interfaceElement);" << endl; |