Doc: Add AcceptMode info to DontConfirmOverwrite

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.6 6.5
Change-Id: I1017252980810e712f2710751c8852dd12eaeef7
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
(cherry picked from commit 76a1c7690fd9f8e747a2bbdd5d910bebd6ef162c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Safiyyah Moosa 2023-12-05 12:38:04 +01:00 committed by Qt Cherry-pick Bot
parent e56db0394a
commit 30e0dc908c

View File

@ -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.