summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-07-24 11:49:30 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-07-24 11:50:30 (GMT)
commit11fb6f876b94869921fa9b560ce8a3f6ae38e1f5 (patch)
tree5da4ccb854fe5528b8ad0d32b2b57e71b247ab14 /tools
parented2a03b3bc85be056eca87928d18a746faa07bca (diff)
downloadQt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.zip
Qt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.tar.gz
Qt-11fb6f876b94869921fa9b560ce8a3f6ae38e1f5.tar.bz2
qdoc: Fixed all references to obsolete QHttp classes.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index d82e9f8..ab74f13 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -3523,9 +3523,17 @@ QString HtmlGenerator::getLink(const Atom *atom,
if (relative) {
if (relative->parent() != *node) {
if (relative->status() != Node::Obsolete) {
- relative->doc().location().warning(tr("Link to obsolete item '%1' in %2")
- .arg(atom->string())
- .arg(marker->plainFullName(relative)));
+ bool porting = false;
+ if (relative->type() == Node::Fake) {
+ const FakeNode* fake = static_cast<const FakeNode*>(relative);
+ if (fake->title().startsWith("Porting"))
+ porting = true;
+ }
+ QString name = marker->plainFullName(relative);
+ if (!porting && !name.startsWith("Q3"))
+ relative->doc().location().warning(tr("Link to obsolete item '%1' in %2")
+ .arg(atom->string())
+ .arg(name));
#if 0
qDebug() << "Link to Obsolete entity"
<< (*node)->name();