summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/generator.h
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-06-30 17:08:43 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-07-01 11:56:01 (GMT)
commita8f466030b5774adb558ca88552a473f28aa2c89 (patch)
tree49da96b4ca348a52e0b6c1b2ffc217f753ff9d11 /tools/qdoc3/generator.h
parente32db846484eb3f9e2cc109d1c9250d326ee97d0 (diff)
downloadQt-a8f466030b5774adb558ca88552a473f28aa2c89.zip
Qt-a8f466030b5774adb558ca88552a473f28aa2c89.tar.gz
Qt-a8f466030b5774adb558ca88552a473f28aa2c89.tar.bz2
Modified \since command behavior slightly to handle project and version.
(The since argument can contain a project name and version, defaulting to the qdoc project if only a version number is specified.) Refactored common code into the Generator class. Fixed \sincelist HTML generation for tables containing only one item. (cherry picked from commit 6a2f18140bbc41207eb2f5e2323b699600d89606)
Diffstat (limited to 'tools/qdoc3/generator.h')
-rw-r--r--tools/qdoc3/generator.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/qdoc3/generator.h b/tools/qdoc3/generator.h
index e5e9747..e66915b 100644
--- a/tools/qdoc3/generator.h
+++ b/tools/qdoc3/generator.h
@@ -57,6 +57,12 @@
QT_BEGIN_NAMESPACE
+typedef QMap<QString, const Node*> NodeMap;
+typedef QMultiMap<QString, Node*> NodeMultiMap;
+typedef QMap<QString, NodeMultiMap> NewSinceMaps;
+typedef QMap<Node*, NodeMultiMap> ParentMaps;
+typedef QMap<QString, NodeMap> NewClassMaps;
+
class ClassNode;
class Config;
class CodeMarker;
@@ -152,6 +158,7 @@ class Generator
QString getMetadataElement(const InnerNode* inner, const QString& t);
QStringList getMetadataElements(const InnerNode* inner, const QString& t);
+ void findAllSince(const InnerNode *node);
private:
void generateReimplementedFrom(const FunctionNode *func,
@@ -180,6 +187,11 @@ class Generator
const NodeList& subs,
CodeMarker *marker);
+ static QString sinceTitles[];
+ NewSinceMaps newSinceMaps;
+ NewClassMaps newClassMaps;
+ NewClassMaps newQmlClassMaps;
+
private:
QString amp;
QString lt;