From 433f2315ac07534acb858006f3ad925cd31eaa98 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Mon, 16 Sep 2013 13:07:57 +0200 Subject: qdoc: Now reports duplicate page titles better. Currently, qdoc reports duplicate pages, when it should be reporting duplicate page titles. Sometimes the duplicate titles actually refer to the same page, but often they are different pages with the same title. This update changes the error message to better indicate that two identical page titles were seen. A further complication was that the qdoc warnings for these duplate page title errors were useless when the duplicates were in different Qt5 modules, because the support for file location information in the qdoc index files was inadequate. This update adds better location information to each section in the index file. This makes the index files bigger and will increase qdoc runtimes, hopefully not too much. Task-number: QTBUG-33506 Change-Id: I35db3c5e1551b9ef748d63377e94453da80c1e26 Reviewed-by: Jerome Pasion --- src/tools/qdoc/qdocdatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/qdoc/qdocdatabase.cpp') diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp index a50f428d24..821170d0b1 100644 --- a/src/tools/qdoc/qdocdatabase.cpp +++ b/src/tools/qdoc/qdocdatabase.cpp @@ -932,7 +932,7 @@ const DocNode* QDocDatabase::findDocNodeByTitle(const QString& title, const Node ++j; } if (internalLocations.size() > 0) { - i.value()->location().warning(tr("This page exists in more than one file: \"%1\"").arg(title)); + i.value()->location().warning(tr("This page title exists in more than one file: \"%1\"").arg(title)); foreach (const Location &location, internalLocations) location.warning(tr("[It also exists here]")); } -- cgit v1.2.3