diff libgui/src/m-editor/file-editor.cc @ 18724: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 64bd9afac22c
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 ();