diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-05-25 18:11:10 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-05-31 01:05:53 +0200 |
commit | 11e88eaa6df629a2c23a60815a1f7826dd2ac31a (patch) | |
tree | b49896dab795935434ac727f8f48c186550a93af /tests/auto/widgets | |
parent | cbd226fffa61342a5d586f031eab89f47547e025 (diff) |
QComboBox: add space for scrollbar if needed after showing popup
QComboBox tests if a horizontal scrollbar is needed before sizing and
showing the popup, but QListView only knows whether a scrollbar is needed
only after laying itself out during the initial show and paint event.
So test whether the need has arisen as part of this initial layout, and
then provide the additional space. Resizing the widget after showing it
is not ideal, but in practice makes no visible difference (and it's
either way preferable to not being able to access the item covered by
the scrollbar).
Pick-to: 6.1 5.15
Fixes: QTBUG-93736
Change-Id: I0bf077e18116ce174ae7f9218cb3b0dfa82964e1
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto/widgets')
0 files changed, 0 insertions, 0 deletions