diff options
author | Martin Smith <msmith@trolltech.com> | 2009-07-22 09:47:02 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-07-22 09:47:02 (GMT) |
commit | 3a8968dd2aab9c4e40ed34222f557bec6a98349e (patch) | |
tree | 38cad8981cd567fbc1164878109604654ba8257d /tools/qdoc3 | |
parent | 236579465c8328fd4022a3dbbb68bf6fa9ffe4f4 (diff) | |
download | Qt-3a8968dd2aab9c4e40ed34222f557bec6a98349e.zip Qt-3a8968dd2aab9c4e40ed34222f557bec6a98349e.tar.gz Qt-3a8968dd2aab9c4e40ed34222f557bec6a98349e.tar.bz2 |
qdoc: Reported links to obsolete things that appear in non-obsolete things.
Also marked the other QHttpXxx classes as \obsolete.
Diffstat (limited to 'tools/qdoc3')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 8d5e3d3..e31f6cf 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -3514,16 +3514,21 @@ QString HtmlGenerator::getLink(const Atom *atom, else { *node = relative; } -#if 0 + if (*node) { if ((*node)->status() == Node::Obsolete) { 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))); +#if 0 qDebug() << "Link to Obsolete entity" << (*node)->name(); qDebug() << " relative entity" << relative->name(); +#endif } } } @@ -3543,7 +3548,7 @@ QString HtmlGenerator::getLink(const Atom *atom, //qDebug() << "Node Status:" << (*node)->status(); #endif } -#endif + while (!path.isEmpty()) { targetAtom = tre->findTarget(path.first(), *node); if (targetAtom == 0) |