summaryrefslogtreecommitdiffstats
path: root/examples/dbus/complexpingpong/CMakeLists.txt
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-06-05 17:10:00 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-06-06 21:49:02 +0200
commit2a7da1b3c8c4096d7c2b09f3fcc58e9cf47867cd (patch)
treec6e080e257dc0f2504d103c91cd89ad0cc22a514 /examples/dbus/complexpingpong/CMakeLists.txt
parenta471324a03a0b83e657325ee22f032b273e84102 (diff)
QTabBar: recalculate scroll offset when showingHEADdev
If an application sets the current index and resizes the tab widget before showing it, then the scroll offset might be calculated based on an old size. Since after ca15f650a1a914bb9a41131109c46c4e52c5ebb1, resizing explicitly avoids scrolling, this could result in tabs ending up scrolled outside of the tab bar when showing the tab widget. Fix that by explicitly making the current tab visible in the tab bar's showEvent handler, which recalculates the scroll offset based on the actual size. This is only reproducible with a tab widget, which lays out the tab bar for each change and resets the tab bar's layoutDirty flag. Add a test case there. Pick-to: 6.5 6.6 Fixes: QTBUG-114204 Change-Id: I1e9506b9dde1dd892291d108dd2c7b675ef99509 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Jonas Kvinge <jonas@jkvinge.net>
Diffstat (limited to 'examples/dbus/complexpingpong/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions