diff options
author | Safiyyah Moosa <safiyyah.moosa@qt.io> | 2023-12-05 12:38:04 +0100 |
---|---|---|
committer | Safiyyah Moosa <safiyyah.moosa@qt.io> | 2023-12-13 18:09:31 +0100 |
commit | 76a1c7690fd9f8e747a2bbdd5d910bebd6ef162c (patch) | |
tree | 8f59cd02dc8c77b9ea8d881de4483a2821954dc7 /src/widgets | |
parent | 6b57b320519c004218dae9f02244120fe5e2632a (diff) |
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>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/dialogs/qfiledialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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. |