diff options
| author | Emanoil Kotsev <deloptes@gmail.com> | 2019-04-28 00:54:52 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-28 00:54:52 +0900 | 
| commit | bb8f8a28271c8c730e94c77afeb32e24e08c1c17 (patch) | |
| tree | 16b831dbb23024b0074eae6e64ce057fb7288996 /src/tools/dbusxml2qt3/methodgen.cpp | |
| parent | 3997d3cdec601355635a21e1358310c9ab6638b7 (diff) | |
| download | dbus-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>
Diffstat (limited to 'src/tools/dbusxml2qt3/methodgen.cpp')
| -rw-r--r-- | src/tools/dbusxml2qt3/methodgen.cpp | 4 | 
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" | 
