summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/codemarker.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-03-30 11:03:10 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-03-30 11:03:10 (GMT)
commit2d9260e863ff2e3a5bb77d37b2b9b90072bce825 (patch)
treee64fcf9691356c462409980272e89751948f196e /tools/qdoc3/codemarker.h
parentdcb055cde3a8d31e52a2d2143f14ca8662859541 (diff)
downloadQt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.zip
Qt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.tar.gz
Qt-2d9260e863ff2e3a5bb77d37b2b9b90072bce825.tar.bz2
qdoc: Added <div> elements to some html output for class references.
Task: QTBUG-9504
Diffstat (limited to 'tools/qdoc3/codemarker.h')
-rw-r--r--tools/qdoc3/codemarker.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/tools/qdoc3/codemarker.h b/tools/qdoc3/codemarker.h
index 1b21753..aab8a9c 100644
--- a/tools/qdoc3/codemarker.h
+++ b/tools/qdoc3/codemarker.h
@@ -58,6 +58,7 @@ class Tree;
struct Section
{
QString name;
+ QString divClass;
QString singularMember;
QString pluralMember;
NodeList members;
@@ -66,9 +67,11 @@ struct Section
Section() { }
Section(const QString& name0,
+ const QString& divClass0,
const QString& singularMember0,
const QString& pluralMember0)
- : name(name0),
+ : name(name0),
+ divClass(divClass0),
singularMember(singularMember0),
pluralMember(pluralMember0) { }
void appendMember(Node* node) { members.append(node); }
@@ -79,6 +82,7 @@ struct FastSection
{
const InnerNode *innerNode;
QString name;
+ QString divClass;
QString singularMember;
QString pluralMember;
QMap<QString, Node *> memberMap;
@@ -86,20 +90,30 @@ struct FastSection
QList<QPair<ClassNode *, int> > inherited;
FastSection(const InnerNode *innerNode0,
- const QString& name0 = "",
- const QString& singularMember0 = "member",
- const QString& pluralMember0 = "members")
+ const QString& name0,
+ const QString& divClass0,
+ const QString& singularMember0,
+ const QString& pluralMember0)
: innerNode(innerNode0),
name(name0),
+ divClass(divClass0),
singularMember(singularMember0),
pluralMember(pluralMember0) { }
bool isEmpty() const {
- return (memberMap.isEmpty() && inherited.isEmpty() &&
+ return (memberMap.isEmpty() &&
+ inherited.isEmpty() &&
reimpMemberMap.isEmpty());
}
};
+#if 0
+ const QString& name0 = "",
+ const QString& divClass0 = "",
+ const QString& singularMember0 = "member",
+ const QString& pluralMember0 = "members")
+#endif
+
class CodeMarker
{
public: