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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 07 Nov 2011 19:53:17 +0100
changeset 1428
6fdd3432654f
parent 1427
09d6731b73ad
child 1431
b27587835407

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

E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5SideBar.py	Sun Nov 06 19:48:46 2011 +0100
+++ b/E5Gui/E5SideBar.py	Mon Nov 07 19:53:17 2011 +0100
@@ -39,6 +39,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	Sun Nov 06 19:48:46 2011 +0100
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Mon Nov 07 19:53:17 2011 +0100
@@ -26,6 +26,7 @@
 from E5Gui.E5Led import E5Led
 
 import Preferences
+from Globals import isMacPlatform
 
 from eric5config import getConfig
 
@@ -158,8 +159,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