Mercurial > hg > octave-nkf
changeset 15983:200dab2eecd4
gui: complete changeset 6c0fce0632a4 with #ifdef HAVE_QSCINTILLA for editor
* main_window.cc (construct,handle_editor_visible): added #ifdef HAVE_QSCINTILLA
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 28 Jan 2013 18:57:36 +0100 |
parents | 131d40cd805b |
children | 1eb3c67139f6 |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -456,8 +456,10 @@ main_window::handle_editor_visible (bool visible) { // if changed to visible and widget is not floating +#ifdef HAVE_QSCINTILLA if (visible && !_file_editor->isFloating ()) focus_editor (); +#endif } void @@ -998,8 +1000,10 @@ this, SLOT (handle_command_history_visible (bool))); connect (_files_dock_widget, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_current_directory_visible (bool))); +#ifdef HAVE_QSCINTILLA connect (_file_editor, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_editor_visible (bool))); +#endif connect (_documentation_dock_widget, SIGNAL (visibilityChanged (bool)), this, SLOT (handle_documentation_visible (bool)));