Mercurial > octave-nkf
comparison libgui/src/terminal-dock-widget.cc @ 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 | 2754c5fd6ae0 |
children | ba808cd9d86c |
comparison
equal
deleted
inserted
replaced
16610:a1f613e5066d | 16611:999400bebe5e |
---|---|
35 | 35 |
36 setObjectName ("TerminalDockWidget"); | 36 setObjectName ("TerminalDockWidget"); |
37 setWindowIcon (QIcon(":/actions/icons/logo.png")); | 37 setWindowIcon (QIcon(":/actions/icons/logo.png")); |
38 setWindowTitle (tr ("Command Window")); | 38 setWindowTitle (tr ("Command Window")); |
39 setWidget (terminal); | 39 setWidget (terminal); |
40 | |
41 connect (parent (), SIGNAL (settings_changed (const QSettings *)), | |
42 this, SLOT (notice_settings (const QSettings *))); | |
43 | 40 |
44 connect (this, SIGNAL (visibilityChanged (bool)), | 41 connect (this, SIGNAL (visibilityChanged (bool)), |
45 this, SLOT (handle_visibility (bool))); | 42 this, SLOT (handle_visibility (bool))); |
46 | 43 |
47 // Forward signals to QTerminal widget. | 44 // Forward signals to QTerminal widget. |