Mercurial > hg > octave-lyh
changeset 15355:a9fd6821eedf
GUI: recognize editor prefences for long title names; changed default value to false
* file-editor-tab.cc (file-editor-tab::file-editor-tab): read long title bool from settings
* settings-dialog.cc (settings-dialog::settings-dialog): change long title default to false
author | Thorsten Liebig <Thorsten.Liebig@gmx.de> |
---|---|
date | Tue, 11 Sep 2012 10:50:43 +0200 |
parents | 450fedd44176 |
children | 842ab161c10a |
files | libgui/src/m-editor/file-editor-tab.cc libgui/src/settings-dialog.cc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -121,7 +121,7 @@ this, SLOT (file_has_changed (QString))); _file_name = ""; - _long_title = false; + _long_title = settings->value ("editor/longWindowTitle",false).toBool (); update_window_title (false); }
--- a/libgui/src/settings-dialog.cc +++ b/libgui/src/settings-dialog.cc @@ -45,7 +45,7 @@ ui->editor_codeCompletion->setChecked (settings->value ("editor/codeCompletion",true).toBool () ); ui->editor_fontName->setCurrentFont (QFont (settings->value ("editor/fontName","Courier").toString()) ); ui->editor_fontSize->setValue (settings->value ("editor/fontSize",10).toInt ()); - ui->editor_longWindowTitle->setChecked (settings->value ("editor/longWindowTitle",true).toBool ()); + ui->editor_longWindowTitle->setChecked (settings->value ("editor/longWindowTitle",false).toBool ()); ui->terminal_fontName->setCurrentFont (QFont (settings->value ("terminal/fontName","Courier").toString()) ); ui->terminal_fontSize->setValue (settings->value ("terminal/fontSize",10).toInt ()); ui->showFilenames->setChecked (settings->value ("showFilenames").toBool());