From c1088d493ea6255ead844505c5d5676362f00684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 10 Nov 2022 14:45:37 +0100 Subject: QMessageBox: Don't add details button to native dialog helper The "Show Details..." button is not plumbed in any way to the native dialog, so when added to a native dialog it will just result in the dialog being dismissed, instead of revealing any extra content in the native dialog. Both the iOS and Android native message dialog implementations add the details text directly to the dialog, without any action to explicitly reveal it. Task-number: QTBUG-108153 Change-Id: I92e00c59b7836f633be44caebd534a47ac58be00 Reviewed-by: Volker Hilsheimer --- examples/widgets/dialogs/standarddialogs/dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/widgets') diff --git a/examples/widgets/dialogs/standarddialogs/dialog.cpp b/examples/widgets/dialogs/standarddialogs/dialog.cpp index 5ce992434a..c9faea03f6 100644 --- a/examples/widgets/dialogs/standarddialogs/dialog.cpp +++ b/examples/widgets/dialogs/standarddialogs/dialog.cpp @@ -12,8 +12,8 @@ Dialog::tr("

Click a button to close the message box. Pressing the Escape key " \ "will activate the detected escape button (if any).") #define MESSAGE_DETAILS \ - Dialog::tr("If a message box has detailed text, the user can reveal it " \ - "by pressing the Show Details... button.") + Dialog::tr("Additional detailed text can be provided, which may require user " \ + "action to be revealed.") class DialogOptionsWidget : public QGroupBox -- cgit v1.2.3