qt5base-lts/tests/manual/qtabbar
Eskil Abrahamsen Blomfeldt b5d762ae87 macOS: Fix padding around tab label with icon
Change c12072c685 fixed a problem
where tab labels would overlap with the icons if the tab became
too small to contain the text. But it did not properly account
for the full area occupied by the icon, because the horizontal
padding is hardcoded to 4 in the mac style, whereas in the
common style (where the icon is drawn) it uses the pixel metric
for this.

In addition, the change only allocated space on the left side,
causing the label to no longer be centered.

Task-number: QTBUG-61235
Change-Id: Ieec4f7044584361f92045addbc8bbd81bd5c9fc7
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
2017-08-18 07:27:52 +00:00
..
main.cpp macOS: Fix padding around tab label with icon 2017-08-18 07:27:52 +00:00
qtabbar.pro qtabbar manual test: Improve usability 2017-07-06 00:58:17 +00:00
tabbarform.cpp qtabbar manual test: Improve usability 2017-07-06 00:58:17 +00:00
tabbarform.h qtabbar manual test: Improve usability 2017-07-06 00:58:17 +00:00
tabbarform.ui macOS: Fix padding around tab label with icon 2017-08-18 07:27:52 +00:00