Skip to content
Snippets Groups Projects
Commit 0bdcce93 authored by Matthias Möller's avatar Matthias Möller
Browse files

add jump-to-reference support for links

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14064 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96a9daff
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,12 @@ void HelpBrowser::open(const QUrl& _url, const QString& /*_str*/, bool _skipSave
currentPage_ = visitedPages_.size()-1;
}
//jumps to a reference (Doxygen reference name and not section name)
//references are at the end of url after last '#'
QStringList Anchor = _url.toString().split("#");
if (Anchor.size() > 1)
this->scrollToAnchor(Anchor[Anchor.size()-1]);
emit urlChanged ( _url.toString() );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment