From 95afc5fdec0576c58c10348d4429a2e75a59e035 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 4 Nov 2020 18:05:58 +0100 Subject: [PATCH] Keep tabs in the middle on macOS --- src/widgets/fancytabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/fancytabwidget.cpp b/src/widgets/fancytabwidget.cpp index b619cf192..e829b5600 100644 --- a/src/widgets/fancytabwidget.cpp +++ b/src/widgets/fancytabwidget.cpp @@ -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;