diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-24 13:17:26 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-24 19:41:08 +0100 |
commit | bed7788402fe0cab9eb36d37e9fff9e65b3fbfe6 (patch) | |
tree | 71f0497862a6e53171424e5a6b9496ad9d46fa0f /src/widgets/dialogs | |
parent | 703f922b18110ed90018bd05526661937c3067f6 (diff) |
QFileDialog::getOpenFileContent: default new parent parameter
Amends 7c5cf8cae054954975a3e262f7fe3cd9897d67f4, which
removed the old function that didn't have any parent parameter
from the API, and added a new one with the parent parameter in
its stead.
However, to make sure that the new function is source compatible
with existing code, the parent parameter must be defaulted to
nullptr (which it already is in the new version of
saveFileContent).
Found during header review.
Pick-to: 6.7
Change-Id: I3e734905be9788ae1b206c7a65328e604667f5e4
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r-- | src/widgets/dialogs/qfiledialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qfiledialog.h b/src/widgets/dialogs/qfiledialog.h index b3958beeed..d59392753a 100644 --- a/src/widgets/dialogs/qfiledialog.h +++ b/src/widgets/dialogs/qfiledialog.h @@ -214,7 +214,7 @@ public: static void getOpenFileContent(const QString &nameFilter, const std::function<void(const QString &, const QByteArray &)> &fileContentsReady, - QWidget *parent); + QWidget *parent= nullptr); static void saveFileContent(const QByteArray &fileContent, const QString &fileNameHint, |