Priority: P2: Important
Affects Version/s: 5.15.0, 5.15.1
Fix Version/s: None
Component/s: Widgets: Style Sheets
Environment:Windows and Linux, probably other platforms too
Commits:b39b018f4a54252ee7a9ffada6d0f05f5896baaf (qt/qtbase/dev) 404b0cc60a65dedbcdc3417f567d9b21c55c359b (qt/tqtc-qtbase/tqtc/lts-5.15)
After inserting a new tab between the current tab and the last tab, the last tab is incorrectly styled. See attached screenshot.
Checked under a debugger, it appears that the internal state is not updated in this case. Specifically, QTabBarPrivate::lastVisible is not updated to reflect the index of the last visible tab. This results in the wrong tab styled, as if it was the last instead.
It looks like the regression was introduced by this change, https://codereview.qt-project.org/c/qt/qtbase/+/255141
|For Gerrit Dashboard: QTBUG-86898|
|322870,2||QTabBar test: refactor: extract checkPositions helper function||5.15||qt/qtbase||Status: NEW||0||0|
|322871,1||QTabBar: update index of last visible tab in insertTab||5.15||qt/qtbase||Status: NEW||0||0|