From 76a1c7690fd9f8e747a2bbdd5d910bebd6ef162c Mon Sep 17 00:00:00 2001 From: Safiyyah Moosa Date: Tue, 5 Dec 2023 12:38:04 +0100 Subject: Doc: Add AcceptMode info to DontConfirmOverwrite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When QFileDialog::DontConfirmOverwrite is in the false state (default state), it requires QFileDialog::AcceptMode to be set to QFileDialog::AcceptSave. This information was not stated in the documents and this fix adds this information to the docs. Fixes: QTBUG-49720 Pick-to: 6.5 6.6 6.7 Change-Id: I1017252980810e712f2710751c8852dd12eaeef7 Reviewed-by: Topi Reiniƶ --- src/widgets/dialogs/qfiledialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets/dialogs/qfiledialog.cpp') diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp index a947ee7d93..dab799944d 100644 --- a/src/widgets/dialogs/qfiledialog.cpp +++ b/src/widgets/dialogs/qfiledialog.cpp @@ -190,7 +190,8 @@ Q_GLOBAL_STATIC(QUrl, lastVisitedDir) dialog. By default symlinks are resolved. \value DontConfirmOverwrite Don't ask for confirmation if an - existing file is selected. By default confirmation is requested. + existing file is selected. By default, confirmation is requested. + (Valid only if \l acceptMode is \l {QFileDialog::}{AcceptSave}). Note: This option is not supported on macOS when using the native file dialog. -- cgit v1.2.3