diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-03-22 08:38:01 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-03-22 09:46:09 +0100 |
commit | f0734deb7a3bcae2615adbe6a465ec39952b3e98 (patch) | |
tree | 8ffa30478057bafb9813daaac08d094b30d69f3f /o3tl/qa | |
parent | 24b5490cb0fd8de19415509fbf452874669106ad (diff) |
gtk3_kde5: Don't call deprecated QFileDialog::setConfirmOverwrite
QFileDialog documentation says [1]:
> This property is obsolete. It is provided to keep old source code
> working. We strongly advise against using it in new code.
>
> This property holds whether the filedialog should ask before accepting a
> selected file, when the accept mode is AcceptSave
>
> Use setOption(DontConfirmOverwrite, !enabled) or
> !testOption(DontConfirmOverwrite) instead.
Documentation on `QFileDialog::DontConfirmOverwrite` [2] says:
> QFileDialog::DontConfirmOverwrite 0x00000004 Don't ask for
> confirmation if an existing file is selected. By default confirmation is
> requested.
It already said that 10 years ago. Given that's the default,
there's no need to set it explicitly at all.
[1] https://doc.qt.io/qt-5/qfiledialog-obsolete.html#confirmOverwrite-prop
[2] https://doc.qt.io/qt-5/qfiledialog.html#Option-enum
Change-Id: I77a0022dc4128d157ba49c9aa8de447bb2c08379
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131923
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'o3tl/qa')
0 files changed, 0 insertions, 0 deletions