Mercurial > octave-nkf
changeset 17030:05b8ad3b7d12
Display/focus documentation browser when running command doc 'xxxxx'
* libgui/src/documentation-dock-widget.cc
(documentation_dock_widget::showDoc): display documentation browser when when loading a reference.
* libgui/src/qtinfo/webinfo.cc
(webinfo::load_ref): Set focus to browser window when load_ref called.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 21 Jul 2013 17:26:39 -0400 |
parents | 359c5ca795cd |
children | 38bcfd413db0 |
files | libgui/src/documentation-dock-widget.cc libgui/src/qtinfo/webinfo.cc |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/documentation-dock-widget.cc Sat Jul 20 22:13:51 2013 -0400 +++ b/libgui/src/documentation-dock-widget.cc Sun Jul 21 17:26:39 2013 -0400 @@ -54,5 +54,12 @@ void documentation_dock_widget::showDoc (const QString &name) { + // show the doc pane + if (!isVisible ()) + setVisible (true); + setFocus (); + raise (); + _webinfo->load_ref (name); + }