diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-06 11:30:37 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-09 18:19:15 +0200 |
commit | 06b1e404c936847038cc7a371720b05f31532b6a (patch) | |
tree | 3f2d9e806e38cf7a1e6175d9ff5d19163b5dfdc2 /src/widgets/itemviews | |
parent | fee0a63db9f2fdd6999610c3a72961fadcec01a6 (diff) |
Fix scrolling of tab bar when the visible tab is wider than the visible space
When finding the index we need to scroll to, use the one where both start
and end of the tab rect are outside the currently visible section.
Otherwise we wouldn't scroll when the left-most index ends outside the
visible section.
Add test, which requires that the scroll buttons have object names.
Fixes: QTBUG-70498
Pick-to: 6.2 6.1 5.15
Change-Id: Id153c77dd5fca146612375e0ff39bd1f3e0536b1
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/itemviews')
0 files changed, 0 insertions, 0 deletions