diff options
author | Martin Smith <martin.smith@digia.com> | 2014-11-25 15:18:49 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@digia.com> | 2015-01-12 13:12:05 +0100 |
commit | df6d2290e6399471431811160a0c0ff2eb16cb62 (patch) | |
tree | 4465dc3480b596391da7a0e13dc496d3ca0058ee /src/tools/qdoc/qdocdatabase.h | |
parent | 9da1a1286493846fb0d58f7a848c13653136e1b3 (diff) |
qdoc: qdoc's 'square bracket' parameters were evaluated too early
qdoc's link command (\l) allows an optional first argument enclosed in
square brackets. This argument is used for narrowing and focusing the
search for the link target. The argument should not be evaluated until
the generate phase, but it was being evaluated in the prepare
phase. This was also a problem when running qdoc in the single-exec
mode. This update prevents qdoc from evaluating the argument until it
is used in the generate phase.
Change-Id: I82785e97077053fb5f5c11f0592155675334aaeb
Task-number: QTBUG-42880
Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc/qdocdatabase.h')
-rw-r--r-- | src/tools/qdoc/qdocdatabase.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/qdoc/qdocdatabase.h b/src/tools/qdoc/qdocdatabase.h index 9b4d7019ad..bc7a912740 100644 --- a/src/tools/qdoc/qdocdatabase.h +++ b/src/tools/qdoc/qdocdatabase.h @@ -73,6 +73,9 @@ class QDocForest Tree* nextTree(); Tree* primaryTree() { return primaryTree_; } Tree* findTree(const QString& t) { return forest_.value(t); } + QStringList keys() { + return forest_.keys(); + } NamespaceNode* primaryTreeRoot() { return (primaryTree_ ? primaryTree_->root() : 0); } bool isEmpty() { return searchOrder().isEmpty(); } bool done() { return (currentIndex_ >= searchOrder().size()); } @@ -401,6 +404,9 @@ class QDocDatabase } TargetList* getTargetList(const QString& t) { return primaryTree()->getTargetList(t); } QStringList getTargetListKeys() { return primaryTree()->getTargetListKeys(); } + QStringList keys() { + return forest_.keys(); + } private: friend class QDocIndexFiles; |