qt5base-lts/tests/auto/widgets
Volker Hilsheimer 55433f90af Stylesheet: Fix tab layout when tab has a font and icons
Amends e3b2b12a91, which made the
style sheet calculate the font-dependent text size, but didn't
add the space needed for the close button or a tab icon.

QTabBar's layout code already adds the space needed for icons
and margins to the size; so instead of overwriting that size,
subtract the size needed by the normal font, and then add the
size needed for the font form the style rule, considering both
vertical and horizontal tab bars.

Fix the test case to style only one tab rather than the entire
tab bar, otherwise the font is applied to the entire tab bar,
and not just to a specific tab, which is the style sheet style
code in question.

Pick-to: 6.2 6.3
Task-number: QTBUG-6905
Change-Id: Ieed0ba146a32e81229419adecaf41f467cfd5959
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-02-02 07:10:12 +01:00
..
dialogs Remove unused .qrc files 2022-01-17 23:17:01 +01:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Remove unused .qrc files 2022-01-17 23:17:01 +01:00
itemviews QTableView: correctly toggle column selection when scrolled 2021-12-02 14:16:49 +00:00
kernel Further improve QShortcut test 2022-01-18 22:42:44 +01:00
styles Stylesheet: Fix tab layout when tab has a font and icons 2022-02-02 07:10:12 +01:00
util tests: port to new QMutableEventPoint static API 2022-01-15 12:29:27 +01:00
widgets Remove flaky and duplicate animateClick tests 2022-01-21 18:53:34 +01:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00