qt6-bb10/tests/auto/widgets/dialogs
Tor Arne Vestbø 3964d03f31 Return button index for deprecated QMessageBox APIs
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 b30121041c 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.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>
(cherry picked from commit 5b151ea2d23dc3834180d3ec6495ac5d99cae550)
2024-06-06 10:37:23 +00:00
..
qcolordialog Change license for tests files 2024-02-04 09:56:42 +01:00
qdialog Change license for tests files 2024-02-04 09:56:42 +01:00
qerrormessage Change license for tests files 2024-02-04 09:56:42 +01:00
qfiledialog tst_QFileDialog::focus() remove QApplicationPrivate::setActiveWindow() 2024-04-23 09:26:10 +02:00
qfiledialog2 tst_QFileDialog2::dontShowCompleterOnRoot() remove setActiveWindow() 2024-04-26 18:59:53 +02:00
qfontdialog Change license for tests files 2024-02-04 09:56:42 +01:00
qinputdialog Change license for tests files 2024-02-04 09:56:42 +01:00
qmessagebox Return button index for deprecated QMessageBox APIs 2024-06-06 10:37:23 +00:00
qprogressdialog Change license for tests files 2024-02-04 09:56:42 +01:00
qsidebar Change license for tests files 2024-02-04 09:56:42 +01:00
qwizard Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00