Skip to content

Commit

Permalink
Set scroll buttons and prevent eliding text on dock and preference tabs
Browse files Browse the repository at this point in the history
This is necessary for Mac.
  • Loading branch information
ccordoba12 committed Sep 18, 2023
1 parent fd694e8 commit 3fde5e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spyder/plugins/preferences/widgets/config_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,8 @@ def create_tab(self, name, widgets):
"""
if self.tabs is None:
self.tabs = QTabWidget(self)
self.tabs.setUsesScrollButtons(True)
self.tabs.setElideMode(Qt.ElideNone)

vlayout = QVBoxLayout()
vlayout.addWidget(self.tabs)
Expand Down
1 change: 1 addition & 0 deletions spyder/widgets/dock.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def __init__(self, dock_tabbar, main):

self._set_tabbar_stylesheet()
self.dock_tabbar.setElideMode(Qt.ElideNone)
self.dock_tabbar.setUsesScrollButtons(True)

def eventFilter(self, obj, event):
"""Filter mouse press events.
Expand Down

0 comments on commit 3fde5e9

Please sign in to comment.