Keep tabs in the middle on macOS

This commit is contained in:
Jonas Kvinge 2020-11-04 18:05:58 +01:00
parent 04d69f66c0
commit 95afc5fdec

View File

@ -426,7 +426,7 @@ class FancyTabWidgetProxyStyle : public QProxyStyle {
QRect proxy_style_rect = QProxyStyle::subElementRect(element, option, widget);
QRect commonstyle_rect = common_style_->subElementRect(element, option, widget);
// Make the tabs align on top instead of the middle (macOS style hack).
if (proxy_style_rect.y() > 10) proxy_style_rect.setY(commonstyle_rect.y());
// if (proxy_style_rect.y() > 10) proxy_style_rect.setY(commonstyle_rect.y());
// Fix stretched tabbar (Fedora/Gnome style issue).
proxy_style_rect.setHeight(commonstyle_rect.height());
return proxy_style_rect;