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
...@@ -141,6 +141,12 @@ void HelpBrowser::open(const QUrl& _url, const QString& /*_str*/, bool _skipSave ...@@ -141,6 +141,12 @@ void HelpBrowser::open(const QUrl& _url, const QString& /*_str*/, bool _skipSave
currentPage_ = visitedPages_.size()-1; 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() ); emit urlChanged ( _url.toString() );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment