-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tabbar issue in OSX #2702
Fix tabbar issue in OSX #2702
Conversation
@blink1073 can you test? |
Nope, it doesn't actually switch tabs, it just highlights them. |
Traceback (most recent call last):
File "/Users/ssilvester/workspace/spyder-ide/spyderlib/plugins/__init__.py", line 121, in eventFilter
self.tab_pressed(event)
File "/Users/ssilvester/workspace/spyder-ide/spyderlib/plugins/__init__.py", line 135, in tab_pressed
self.dock_tabbar.mousePressEvent(self, event)
TypeError: QTabBar.mousePressEvent(QMouseEvent): argument 1 has unexpected type 'TabFilter' |
f*ck, I pushed the wrong change give me asec... |
Ok can you try again @blink1073 ? |
Flawless! |
I see what you mean about the weird color when dragging them around. |
Ok I have no idea what is the issue with that weird tab... There is a thing called document mode that can be applied to OSx, @blink1073 Would you mind adding this line in Line 65 or similar (the init method of the TabFilter) def __init__(self, dock_tabbar, main):
QObject.__init__(self)
self.dock_tabbar = dock_tabbar
self.main = main
self.moving = False
self.from_index = None
self.to_index = None
self.dock_tabbar.setDocumentMode(True) # New line This will change the overall look and in this mode the problem is no longer there... but it looks different... |
Prob takes a different set of css. |
Hahahahah yes... I have tried resetting css refreshing, updating... meh... Well will be a minor hiccup for now, @ccordoba12 this can be merged I believe |
Thanks for the fix @goanpeca! One thing about |
Fixes #2598
Description
I think now the user can switch the tab when clicking, however when moving tabs the displaced tab will retain a weird color until it has been selected again. I am not sure why, but at least this PR will fix the main issue.