changeset 18690: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	Sun Apr 27 19:36:54 2014 +0200
+++ b/libgui/src/m-editor/file-editor.cc	Sun Apr 27 20:12:07 2014 +0200
@@ -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 ();
 
--- a/libgui/src/qtinfo/webinfo.cc	Sun Apr 27 19:36:54 2014 +0200
+++ b/libgui/src/qtinfo/webinfo.cc	Sun Apr 27 20:12:07 2014 +0200
@@ -60,7 +60,6 @@
 #ifdef HAVE_QTABWIDGET_SETMOVABLE
   _tab_bar->setMovable (true);
 #endif
-  _tab_bar->setStyleSheet ("QTabBar::tab {max-height: 4ex; }");
   hbox_layout->addWidget (_tab_bar);
 
   _zoom_in_button = new QToolButton (this);