summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter_p.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-06-05 12:35:06 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-06-05 21:58:07 +0000
commit5b151ea2d23dc3834180d3ec6495ac5d99cae550 (patch)
treee10e66253db4b15c8a43322e88d0b5370a29e00e /src/gui/painting/qpainter_p.h
parentc8feef0bb5825102a397787366df74990cfdbf6e (diff)
Return button index for deprecated QMessageBox APIsHEADdev
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 'src/gui/painting/qpainter_p.h')
0 files changed, 0 insertions, 0 deletions