qdoc: Use otherprops attribute for DITA signals/slots.
authorCasper van Donderen <casper.vandonderen@nokia.com>
Wed, 28 Mar 2012 11:59:52 +0000 (13:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 28 Mar 2012 21:15:32 +0000 (23:15 +0200)
Change-Id: Id85860abfb8abdf0b7bd95a65384576d8970096b
Reviewed-by: Martin Smith <martin.smith@nokia.com>
src/tools/qdoc/ditaxmlgenerator.cpp

index a32b1c9..47db5c8 100644 (file)
@@ -4818,13 +4818,13 @@ void DitaXmlGenerator::writeFunctions(const Section& s,
             FunctionNode* fn = const_cast<FunctionNode*>(static_cast<const FunctionNode*>(*m));
             writeStartTag(DT_cxxFunction);
             xmlWriter().writeAttribute("id",fn->guid());
+            if (fn->metaness() == FunctionNode::Signal)
+                xmlWriter().writeAttribute("otherprops","signal");
+            else if (fn->metaness() == FunctionNode::Slot)
+                xmlWriter().writeAttribute("otherprops","slot");
             if (!attribute.isEmpty())
                 xmlWriter().writeAttribute("outputclass",attribute);
             writeStartTag(DT_apiName);
-            if (fn->metaness() == FunctionNode::Signal)
-                xmlWriter().writeAttribute("outputclass","signal");
-            else if (fn->metaness() == FunctionNode::Slot)
-                xmlWriter().writeAttribute("outputclass","slot");
             writeCharacters(fn->name());
             writeEndTag(); // </apiName>
             generateBrief(fn,marker);