summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2019-04-28 00:54:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-28 00:54:52 +0900
commitbb8f8a28271c8c730e94c77afeb32e24e08c1c17 (patch)
tree16b831dbb23024b0074eae6e64ce057fb7288996
parent3997d3cdec601355635a21e1358310c9ab6638b7 (diff)
downloaddbus-1-tqt-bb8f8a28.tar.gz
dbus-1-tqt-bb8f8a28.zip
dd node name if not a root node.
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/tools/dbusxml2qt3/methodgen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/dbusxml2qt3/methodgen.cpp b/src/tools/dbusxml2qt3/methodgen.cpp
index 4e407d5..3ba914e 100644
--- a/src/tools/dbusxml2qt3/methodgen.cpp
+++ b/src/tools/dbusxml2qt3/methodgen.cpp
@@ -541,6 +541,10 @@ static void writeNodeIntrospection(const Class& classData,
stream << " TQDomDocument doc;" << endl;
stream << " TQDomElement nodeElement = doc.createElement(\"node\");" << endl;
+ stream << " if ( !objectPath.isEmpty() && objectPath.compare(\"/\") != 0 )" << endl;
+ stream << " {" << endl;
+ stream << " nodeElement.setAttribute ( \"name\", objectPath );" << endl;
+ stream << " }" << endl;
stream << " TQDomElement interfaceElement = doc.createElement(\"interface\");"
<< endl;
stream << " org::freedesktop::DBus::Introspectable"