diff libgui/src/octave-dock-widget.h @ 16611:999400bebe5e

move more common code from dock widgets into octave-dock-widget.h * terminal-dock-widget.cc, file-editor.cc, files-dock-widget.cc, workspace-view.cc (constructor): remove connectiong changed_settings signal * files-dock-widget.cc/.h, file-editor.h: do not include QSettings here * octave-dock-widget.h(constructor): connect changed_settings signal * octave-dock-widget.h: include QSettings, empty virtual slot notice-settings
author Torsten <ttl@justmail.de>
date Sat, 04 May 2013 23:37:27 +0200
parents 094bd3627ead
children d749c9b588e5
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.h	Sat May 04 09:37:28 2013 +0200
+++ b/libgui/src/octave-dock-widget.h	Sat May 04 23:37:27 2013 +0200
@@ -24,6 +24,7 @@
 #define octave_dock_widget_h 1
 
 #include <QDockWidget>
+#include <QSettings>
 
 class octave_dock_widget : public QDockWidget
 {
@@ -39,6 +40,9 @@
 
     connect (this, SIGNAL (topLevelChanged (bool)),
              this, SLOT (top_level_changed (bool)));
+
+    connect (p, SIGNAL (settings_changed (const QSettings*)),
+             this, SLOT (notice_settings (const QSettings*)));
   }
 
   virtual ~octave_dock_widget () { }
@@ -49,6 +53,7 @@
              this, SLOT (handle_visibility (bool)));
   }
 
+
 signals:
 
   /** Custom signal that tells whether a user has clicked away
@@ -82,6 +87,10 @@
       focus ();
   }
 
+  virtual void notice_settings (const QSettings*)
+  {
+  }
+
 protected slots:
 
   /** Slot to steer changing visibility from outside. */