qt5base-lts/examples/widgets/dialogs/standarddialogs
Tor Arne Vestbø 1fd1ffd03d standarddialogs: Don't assume QMessageBox::exec() returns clicked role
When adding custom buttons to a QMessageBox the return value of exec()
as well as result() is not a StandardButton value, but instead an opaque
value, and the documentation says to use clickedButton() to determine
which button was clicked.

Pick-to: 6.6 6.5
Change-Id: Ib47a218989b4dcb5d51f648bc55bc02399bae602
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-10-24 22:30:03 +02:00
..
CMakeLists.txt Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
dialog.cpp standarddialogs: Don't assume QMessageBox::exec() returns clicked role 2023-10-24 22:30:03 +02:00
dialog.h QErrorMessage: Improve standard dialogs example 2022-11-30 14:48:51 +01:00
main.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
main.mm sharedmemory example: Handle QSharedMemory::AlreadyExists by attaching 2022-11-15 12:27:43 +01:00
standarddialogs.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00