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>
pull/16/head
Emanoil Kotsev 6 years ago committed by Michele Calgaro
parent 3997d3cdec
commit bb8f8a2827
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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"

Loading…
Cancel
Save