summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-16 05:39:42 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-16 05:39:42 (GMT)
commitdaa12d2d6658924aae22cfbb93cfbc77240f26ba (patch)
tree116800cfd19a30bacc77ac8f9bba60eea31591e6 /tools/qdoc3
parentd6ba9ff7e3d7e67d3718ffa7317bfc2d3941a2bb (diff)
downloadQt-daa12d2d6658924aae22cfbb93cfbc77240f26ba.zip
Qt-daa12d2d6658924aae22cfbb93cfbc77240f26ba.tar.gz
Qt-daa12d2d6658924aae22cfbb93cfbc77240f26ba.tar.bz2
Doc: Put "default" property label on same line as property name
Task-number: QTBUG-6336
Diffstat (limited to 'tools/qdoc3')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 4985f64..a13fc7a 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -4412,18 +4412,11 @@ void HtmlGenerator::generateDetailedQmlMember(const Node *node,
out() << "<tr><td>";
out() << "<a name=\"" + refForNode(qpn) + "\"></a>";
if (!qpn->isWritable())
- out() << "<span class=\"qmlreadonly\">read-only</span>";
+ out() << "<span class=\"qmlreadonly\">read-only&nbsp;</span>";
+ if (qpgn->isDefault())
+ out() << "<span class=\"qmldefault\">default&nbsp;</span>";
generateQmlItem(qpn, relative, marker, false);
out() << "</td></tr>";
- if (qpgn->isDefault()) {
- out() << "</table>"
- << "</div></div>"
- << "<div class=\"qmlitem\">"
- << "<div class=\"qmlproto\">"
- << "<table class=\"qmlname\">"
- << "<tr><td><font color=\"green\">"
- << "default</font></td></tr>";
- }
}
++p;
}