diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-03-28 14:10:48 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2011-03-28 14:10:48 (GMT) |
commit | da2223bed0d63aef0bb6b9e583b90f7319363586 (patch) | |
tree | 586c86db1de8495083071cb415bddb31c7e9cacb /src/docparser.cpp | |
parent | ffce2dce60901da5cf765d6452b8e8d505b80754 (diff) | |
download | Doxygen-da2223bed0d63aef0bb6b9e583b90f7319363586.zip Doxygen-da2223bed0d63aef0bb6b9e583b90f7319363586.tar.gz Doxygen-da2223bed0d63aef0bb6b9e583b90f7319363586.tar.bz2 |
Release-1.7.4
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index d27308c..5028c90 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -1036,6 +1036,7 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children) } else if (compound->isLinkable()) // compound link { + QCString anchor; if (compound->definitionType()==Definition::TypeFile) { name=g_token->name; @@ -1044,11 +1045,15 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children) { name=((GroupDef*)compound)->groupTitle(); } + else if (compound->definitionType()==Definition::TypeClass) + { + anchor=((ClassDef*)compound)->anchor(); + } children.append(new DocLinkedWord(parent,name, compound->getReference(), compound->getOutputFileBase(), - "", + anchor, compound->briefDescriptionAsTooltip() ) ); @@ -1087,7 +1092,7 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children) DocLinkedWord(parent,name, cd->getReference(), cd->getOutputFileBase(), - "", + cd->anchor(), cd->briefDescriptionAsTooltip() )); } @@ -1099,7 +1104,7 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children) DocLinkedWord(parent,name, cd->getReference(), cd->getOutputFileBase(), - "", + cd->anchor(), cd->briefDescriptionAsTooltip() )); } @@ -1644,7 +1649,8 @@ DocLinkedWord::DocLinkedWord(DocNode *parent,const QCString &word, m_tooltip(tooltip) { m_parent = parent; - //printf("new word %s url=%s\n",word.data(),g_searchUrl.data()); + //printf("DocLinkedWord: new word %s url=%s tooltip='%s'\n", + // word.data(),g_searchUrl.data(),tooltip.data()); if (Doxygen::searchIndex && !g_searchUrl.isEmpty()) { Doxygen::searchIndex->addWord(word,FALSE); |