summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <[email protected]>2023-12-08 16:53:51 +0100
committerQt Cherry-pick Bot <[email protected]>2023-12-09 22:13:21 +0000
commit4d873c8e6fbd74bf899bef783ed8db07d9c190b2 (patch)
tree7102b3d6e380aa5d9059a26474fcdac35021ccd3 /src/tools/uic/cpp/cppwriteinitialization.h
parent86088f45fde94873c1dc0e7eafb586027d136998 (diff)
QComboBox: inform accessibility about model change before selecting
QComboBox implicitly selects the first item that gets inserted into the model. This happens in response to the model's rowInserted signal, at which point the item view might not have handled the rowInserted signal yet. Because of that, the view couldn't update the accessibility bridge, so informing accessibility about a row being selected that doens't exist in the bridge's representation of the table yet will result in data being out of sync, and depending on the bridge implementation trigger asserts. Fix this by explicitly updating the accessibility bridge before implicitly selecting the first row. Fixes: QTBUG-119526 Fixes: QTBUG-118585 Change-Id: I2830c00751b3f18feb5d9252b23823c80229fed1 Reviewed-by: Tor Arne Vestbø <[email protected]> Reviewed-by: Jan Arve Sæther <[email protected]> (cherry picked from commit ecef7046245f3adee9366d3543e4ed2a09f65735) Reviewed-by: Volker Hilsheimer <[email protected]> (cherry picked from commit 7e28513c2815da4312a90f88fce5c31e67799a11) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.h')
0 files changed, 0 insertions, 0 deletions