Fixed an issue with getting a style hint.

Thu, 25 Mar 2010 18:29:33 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Mar 2010 18:29:33 +0000
changeset 154
25d288e43a6c
parent 153
ef200d69dba0
child 155
375e3c884874

Fixed an issue with getting a style hint.

E5Gui/E5TabWidget.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5TabWidget.py	Wed Mar 24 18:38:44 2010 +0000
+++ b/E5Gui/E5TabWidget.py	Thu Mar 25 18:29:33 2010 +0000
@@ -272,7 +272,8 @@
         
         @return free side (QTabBar.ButtonPosition)
         """
-        side = self.__tabBar.style().styleHint(QStyle.SH_TabBar_CloseButtonPosition)
+        side = self.__tabBar.style().styleHint(QStyle.SH_TabBar_CloseButtonPosition, 
+            None, None, None)
         if side == QTabBar.LeftSide:
             side = QTabBar.RightSide
         else:
@@ -319,4 +320,4 @@
             if animation is not None:
                 animation.movie().stop()
                 self.__tabBar.setTabButton(index, side, None)
-                del animation
\ No newline at end of file
+                del animation

eric ide

mercurial