diff libgui/src/m-editor/file-editor.cc @ 16455:38ed6bdd1f7f

move signal/slot connections from main window to sub window where possible * main-window.cc (main_window::construct): Move the following signal/slot connections to their respective sub-windows. main_window::settings_changed to _file_editor::notice_settings. main_window::settings_changed to command_window::notice_settings. main_window::settings_changed to file_browser_window::notice_settings. file_browser_window::open_file to main_window::open_file. file_browser_window::displayed_directory_changed to main_window::set_current_working_directory. main_window::relay_command_signal to command_window::relay_command. history_window::command_create_script to main_window::new_file.
author John W. Eaton <jwe@octave.org>
date Sun, 07 Apr 2013 04:29:10 -0400
parents 744ff2fe11ce
children 10edb6f1ae98
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc
+++ b/libgui/src/m-editor/file-editor.cc
@@ -801,6 +801,9 @@
   editor_widget->setLayout (vbox_layout);
   setWidget (editor_widget);
 
+  connect (parent (), SIGNAL (settings_changed (const QSettings *)),
+           this, SLOT (notice_settings (const QSettings *)));
+
   connect (new_action,
            SIGNAL (triggered ()), this, SLOT (request_new_file ()));
   connect (open_action,