diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-01-03 13:39:04 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-01-06 09:37:34 +0100 |
commit | 24b8b2cb6ccd3704545ef44519f567edb3da5d5d (patch) | |
tree | 29fc4c5b642514a76d6c229a15b9afc7c0a61898 /tests/manual/widgets/widgets/qtabbar/qtabbar.pro | |
parent | aa542be4e005b1feedc2e17fd6ca2387bf2fea1b (diff) |
Stylesheet: Handle tabs with elide mode set correctly
In order for SE_TabBarTabText to correctly calculate the space available
for the text it needs to get the rectangle of the tab directly instead
of relying on the option's rectangle as this may have been modified
before this point. Therefore we introduce QStyleOptionTabV4 to be able
to store the index as part of the option so it can be queried directly.
[ChangeLog][QtWidgets] Added QStyleOptionTabV4 as a subclass of
QStyleOptionTab so that the tab's index information can be obtained.
Fixes: QTBUG-50637
Change-Id: If705f5069fdd14eeccf06bc63dba4e8d2e704359
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'tests/manual/widgets/widgets/qtabbar/qtabbar.pro')
-rw-r--r-- | tests/manual/widgets/widgets/qtabbar/qtabbar.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/widgets/widgets/qtabbar/qtabbar.pro b/tests/manual/widgets/widgets/qtabbar/qtabbar.pro new file mode 100644 index 0000000000..b39c81493b --- /dev/null +++ b/tests/manual/widgets/widgets/qtabbar/qtabbar.pro @@ -0,0 +1 @@ +SUBDIRS = stylesheet |