summaryrefslogtreecommitdiff
path: root/src/qdoc/qdocdatabase.h
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@theqtcompany.com>2015-12-04 14:50:59 +0100
committerMartin Smith <martin.smith@theqtcompany.com>2015-12-12 10:26:49 +0000
commit3c631952aa05258318a74a65186a6d34005005e0 (patch)
tree6dca1cb4d5c20cb0b9dff30a9a3d96f5fcabda8c /src/qdoc/qdocdatabase.h
parent25505d69c3163d623dc12027cc21581deb9b71ac (diff)
downloadqttools-3c631952aa05258318a74a65186a6d34005005e0.tar.gz
qdoc: Add support for listing all examples from all modules
This commit adds a new argument for \generatelist command, which enables the generation of an 'example index' page: \generatelist annotatedexamples This will generate a set of tables; one for each module, prefixed by a header titled with the module name. The table is an annotated list (title + brief description) for each documented example. A human-readable name for each module is read from the navigation.landingpage .qdocconf variable. This name is written to / read back from the index files as 'indexTitle' attribute. Examples for modules that do not define a landing page title are listed in a single table with no accompanying header. Change-Id: Icb7fa6fb40ec9a0dfce1bf8282c8782a69ec0028 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
Diffstat (limited to 'src/qdoc/qdocdatabase.h')
-rw-r--r--src/qdoc/qdocdatabase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qdoc/qdocdatabase.h b/src/qdoc/qdocdatabase.h
index 80a92af4e..d51f9476d 100644
--- a/src/qdoc/qdocdatabase.h
+++ b/src/qdoc/qdocdatabase.h
@@ -274,6 +274,7 @@ class QDocDatabase
NodeMultiMap& getNamespaces() { resolveNamespaces(); return namespaceIndex_; }
NodeMultiMap& getQmlBasicTypes();
NodeMultiMap& getQmlTypes();
+ NodeMultiMap& getExamples();
NodeMapMap& getFunctionIndex();
TextToNodeMap& getLegaleseTexts();
const NodeMap& getClassMap(const QString& key);
@@ -442,6 +443,7 @@ class QDocDatabase
NodeMultiMap nmm_;
NodeMultiMap qmlBasicTypes_;
NodeMultiMap qmlTypes_;
+ NodeMultiMap examples_;
NodeMapMap newClassMaps_;
NodeMapMap newQmlTypeMaps_;
NodeMultiMapMap newSinceMaps_;