Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.cc @ 19623:f90bb1e30de2 gui-release
switching between edit and main shortcuts depending on active dock widget now
* file-editor-tab.cc (ctor): do not connect removed signal from edit area;
(edit_area_has_focus): removed this related slot
* file-editor-tab.h: remove slot
* octave-qscintilla.cc (focusInEvent, focusOutEvent): removed event handlers
* octave-qscintilla.h (focusInEvent, focusOutEvent): removed event handlers
* main-window.cc (focus_changed): call set_global_edit_shortcuts depending
on new active dock
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 24 Dec 2014 15:07:31 +0100 |
parents | ed0df431631b |
children | 472a5572849c |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -169,9 +169,6 @@ connect (_edit_area, SIGNAL (copyAvailable (bool)), this, SLOT (handle_copy_available (bool))); - connect (_edit_area, SIGNAL (qsci_has_focus_signal (bool)), - this, SLOT (edit_area_has_focus (bool))); - connect (&_file_system_watcher, SIGNAL (fileChanged (const QString&)), this, SLOT (file_has_changed (const QString&))); @@ -2088,12 +2085,6 @@ emit create_context_menu_tab_signal (menu); } -void -file_editor_tab::edit_area_has_focus (bool focus) -{ - emit set_global_edit_shortcuts_signal (! focus); -} - QString file_editor_tab::get_function_name () {