diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-06-05 12:35:06 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-06-05 21:58:07 +0000 |
commit | 5b151ea2d23dc3834180d3ec6495ac5d99cae550 (patch) | |
tree | e10e66253db4b15c8a43322e88d0b5370a29e00e /tests/auto/corelib/serialization/qtextstream/resources/little_endian/operator_shift_int_resource_Unicode_6.data | |
parent | c8feef0bb5825102a397787366df74990cfdbf6e (diff) |
The static QMessageBox APIs taking button texts instead of standard
buttons promises that the return value is 0, 1, or 2. After the change
in b30121041c07b1b8613eaf624c9aa55a51001aef the return value of exec
for custom buttons was changed (as the documentation says its an opaque
value), which unfortunately affected the deprecated functions.
To fix this, we use the index of the clicked button in the custom
button list, to restore the previous behavior of the deprecated
APIs.
Fixes: QTBUG-125858
Pick-to: 6.8 6.7
Change-Id: I96d39e42b64e2b55eab07e2f15df71b94cfe3e6d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
(cherry picked from commit a428c6933565ee8368367534cf306ccc6957f5a5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/serialization/qtextstream/resources/little_endian/operator_shift_int_resource_Unicode_6.data')
0 files changed, 0 insertions, 0 deletions