Mercurial > hg > octave-nkf
comparison libgui/src/m-editor/file-editor.cc @ 18319:01646e48a650 gui-release
fix duplicate of settings string
* settings-dialog.ui: change editor_tab_with into editor_notebook_tab_width
* settings-dialog.cc (ctor, write_changed_settings):
change editor_tab_with into editor_notebook_tab_width and
editor/tab_width into editor/notebook_tab_width
* file-editor.cc (notice_settings):
change editor/tab_width into editor/notebook_tab_width
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 16 Jan 2014 23:04:58 +0100 |
parents | 4dadae02bd4c |
children | 106da7544504 |
comparison
equal
deleted
inserted
replaced
18318:c6e5466d74fe | 18319:01646e48a650 |
---|---|
841 file_editor::notice_settings (const QSettings *settings) | 841 file_editor::notice_settings (const QSettings *settings) |
842 { | 842 { |
843 int icon_size = settings->value ("toolbar_icon_size", 16).toInt (); | 843 int icon_size = settings->value ("toolbar_icon_size", 16).toInt (); |
844 _tool_bar->setIconSize (QSize (icon_size, icon_size)); | 844 _tool_bar->setIconSize (QSize (icon_size, icon_size)); |
845 | 845 |
846 int tab_width = settings->value ("editor/tab_width", 300).toInt (); | 846 int tab_width = settings->value ("editor/notebook_tab_width", 300).toInt (); |
847 QString style_sheet = QString ("QTabBar::tab {max-height: 4ex; " | 847 QString style_sheet = QString ("QTabBar::tab {max-height: 4ex; " |
848 "max-width: %1px; text-align: right }"). | 848 "max-width: %1px; text-align: right }"). |
849 arg (tab_width); | 849 arg (tab_width); |
850 _tab_widget->setStyleSheet (style_sheet); | 850 _tab_widget->setStyleSheet (style_sheet); |
851 | 851 |