summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-08-25 22:39:38 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-08-30 04:25:19 +0000
commit9a3bdbf40af7e4915ed343c8e9917a0f3f54e0ae (patch)
treee1d6f391bdb8281a5a83614dc93ed1888791d13e /tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
parentd2c05b0c8557625ce45cdbd98ebf102972d2c2f4 (diff)
QSS/QTabBar: properly handle QTabBar::scroller
PM_TabBarScrollButtonWidth used the size of the ::scroller subcontrol without considering that there are two QToolButtons and therefore returned the wrong size for a single QToolButton. QStyleSheetStyle::subElementRect() had no handling for SE_TabBarScrollLeft/RightButton and therefore the values for the scroller toolbuttons set via the stylesheet were never used. Fix it by dividing the scroller width by two and add the code path to handle SE_TabBarScrollLeft/RightButton in QStyleSheetStyle::subElementRect Task-number: QTBUG-69653 Change-Id: I1adfe6333f3183bba621bbbb4d10969920c6cd46 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp')
0 files changed, 0 insertions, 0 deletions