Mercurial > octave-libgccjit
changeset 17739:0640892429a8
remove XREF from tab names in the documentation browser
* webinfo.cc(load_node): remove XREF in the string used for the tab name
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 23 Oct 2013 21:05:53 +0200 |
parents | 0cfdb818ccb8 |
children | e6ed77b75aec |
files | libgui/src/qtinfo/webinfo.cc |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/qtinfo/webinfo.cc Wed Oct 23 21:03:00 2013 +0200 +++ b/libgui/src/qtinfo/webinfo.cc Wed Oct 23 21:05:53 2013 +0200 @@ -106,10 +106,14 @@ void webinfo::load_node (const QString& node_name) { + // no XREF in the tabs + QString tab_text = node_name; + tab_text.replace("XREF",""); + //Check if node has been already opened. for (int i = 0;i < _tab_bar->count (); i++) { - if (node_name == _tab_bar->tabText (i)) + if (tab_text == _tab_bar->tabText (i)) { _tab_bar->setCurrentIndex (i); return; @@ -118,7 +122,7 @@ QString text = _parser.search_node (node_name); int i = _parser.is_ref (node_name); - _text_browser = addNewTab (node_name); + _text_browser = addNewTab (tab_text); _text_browser->setHtml (_parser.node_text_to_html (text, i - 1, "anchor")); if (i != -1)