Mercurial > hg > octave-nkf
changeset 18845:834f6e604dc3 gui-release
use defaults size for tab heights in editor and doc widget (bug #42144)
* file-editor.cc (notice_settings): do not change the max height in style sheet
* webinfo.cc (constructor): do not change the max height of the tabs
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 27 Apr 2014 20:12:07 +0200 |
parents | fac35875f6eb |
children | 1a5dabbaa559 |
files | libgui/src/m-editor/file-editor.cc libgui/src/qtinfo/webinfo.cc |
diffstat | 2 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -1030,22 +1030,18 @@ int tab_width_max = settings->value ("editor/notebook_tab_width_max", 300) .toInt (); - QString style_sheet; if (settings->value ("editor/longWindowTitle", false).toBool ()) { - style_sheet = QString ("QTabBar::tab {max-height: 4ex; " - "min-width: %1px; max-width: %2px;}") + QString style_sheet = QString ("QTabBar::tab " + "{min-width: %1px; max-width: %2px;}") .arg (tab_width_min).arg (tab_width_max); _tab_widget->setElideMode (Qt::ElideLeft); + _tab_widget->setStyleSheet (style_sheet); } else - { - style_sheet = QString ("QTabBar::tab {max-height: 4ex;}"); - _tab_widget->setElideMode (Qt::ElideNone); - } + _tab_widget->setElideMode (Qt::ElideNone); _tab_widget->setUsesScrollButtons (true); - _tab_widget->setStyleSheet (style_sheet); set_shortcuts ();