Skip to content

Commit

Permalink
Tabs: Use tabs id only on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jun 20, 2015
1 parent fa77637 commit 6a8ae38
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spyderlib/widgets/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ class TabBar(QTabBar):
def __init__(self, parent, ancestor):
QTabBar.__init__(self, parent)
self.ancestor = ancestor
self.setObjectName('plugin-tab')

# To style tabs on Mac
if sys.platform == 'darwin':
self.setObjectName('plugin-tab')

# Dragging tabs
self.__drag_start_pos = QPoint()
Expand Down Expand Up @@ -108,9 +111,12 @@ class BaseTabs(QTabWidget):
def __init__(self, parent, actions=None, menu=None,
corner_widgets=None, menu_use_tooltips=False):
QTabWidget.__init__(self, parent)
self.setObjectName('plugin-tab')
self.setUsesScrollButtons(True)


# To style tabs on Mac
if sys.platform == 'darwin':
self.setObjectName('plugin-tab')

self.corner_widgets = {}
self.menu_use_tooltips = menu_use_tooltips

Expand Down

0 comments on commit 6a8ae38

Please sign in to comment.