Fixed issues (on non-Mac platforms) caused by the latest Mac related changes. 5_1_x

Mon, 07 Nov 2011 19:53:17 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Nov 2011 19:53:17 +0100
branch
5_1_x
changeset 1429
fa58f95c8976
parent 1426
6f788822a83e
child 1435
09ec4c8c75d8

Fixed issues (on non-Mac platforms) caused by the latest Mac related changes.
(transplanted from 6fdd3432654ff13c74b153d30773b7219b3aad73)

E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5SideBar.py	Sat Nov 05 11:19:51 2011 +0100
+++ b/E5Gui/E5SideBar.py	Mon Nov 07 19:53:17 2011 +0100
@@ -38,6 +38,7 @@
         self.__tabBar = QTabBar()
         self.__tabBar.setDrawBase(True)
         self.__tabBar.setShape(QTabBar.RoundedNorth)
+        self.__tabBar.setUsesScrollButtons(False)
         self.__stackedWidget = QStackedWidget(self)
         self.__stackedWidget.setContentsMargins(0, 0, 0, 0)
         self.__autoHideButton = QToolButton()
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Sat Nov 05 11:19:51 2011 +0100
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Mon Nov 07 19:53:17 2011 +0100
@@ -25,6 +25,7 @@
 from E5Gui.E5Led import E5Led
 
 import Preferences
+from Globals import isMacPlatform
 
 from eric5config import getConfig
 
@@ -155,8 +156,9 @@
         self.setTabBar(self.__tabBar)
         
         self.setUsesScrollButtons(True)
-        self.setDocumentMode(True)
         self.setElideMode(Qt.ElideNone)
+        if isMacPlatform():
+            self.setDocumentMode(True)
         
         self.__tabBar.tabMoveRequested.connect(self.moveTab)
         self.__tabBar.tabRelocateRequested.connect(self.__relocateTab)

eric ide

mercurial