macOS: Fix return value of PM_TabBarBaseHeight to original value

When the tabbar styling was improved in change
175f33ed855b0a8a30daafacd4f48fa3f8e76a9b it changed
PM_TabBarBaseHeight to 21 which is incorrect as this value represents
the spacing between the tab pages and the tabbar. In macOS style
there is no space so this should be set to 0.

Task-number: QTBUG-60307
Change-Id: I2ce39ff2fc924d2d83843fab78b311153b4ee08f
Reviewed-by: Oleg Yadrov <oleg.yadrov@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
This commit is contained in:
Andy Shaw 2017-04-28 22:19:15 +02:00
parent 91c1b5490e
commit 7eae7e8103

View File

@ -2505,7 +2505,7 @@ int QMacStyle::pixelMetric(PixelMetric metric, const QStyleOption *opt, const QW
ret = 0;
break;
case PM_TabBarBaseHeight:
ret = 21;
ret = 0;
break;
case PM_TabBarTabOverlap:
ret = 1;