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.5 6.6 6.7
Change-Id: I1017252980810e712f2710751c8852dd12eaeef7
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Safiyyah Moosa 2023-12-05 12:38:04 +01:00
parent 6b57b32051
commit 76a1c7690f

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.