diff options
| author | Tor Arne Vestbø <[email protected]> | 2025-11-13 17:58:06 +0100 |
|---|---|---|
| committer | Tor Arne Vestbø <[email protected]> | 2025-11-26 15:59:25 +0100 |
| commit | 205e8ce387d9f02a6fedc2ae8917ea6fc8481fc1 (patch) | |
| tree | c1079e185fc27a209947a35a8f596bf78c0338b3 /src/gui/platform/unix/qxkbcommon.cpp | |
| parent | 0edcb27891ee5576acd90139d99664dc7d6a4847 (diff) | |
iOS: Implement support for native save dialogs
The iOS equivalent is a UIDocumentPickerController that exports an
existing file, so we need to create an empty temporary dummy file
to be able to show the dialog. This is also how we give a suggested
file name.
Once the target file is chosen, it's available through the normal
selected-file APIs, and the application can write to it through
the normal security scoped file system backend.
For some reason setting directoryURL to an inaccessible path,
such as the .app bundle, results in the document picker showing
an empty sheet. And in testing both open and save dialogs with
the directoryURL set to a known good path (Documents), the
iOS dialog still prefers to open to the user's last used path,
so we skip the entire logic for save dialogs for now, to be on
the safe side.
[ChangeLog][iOS] Native file dialogs on iOS now support saving
files.
Task-number: QTBUG-120528
Change-Id: I10a0e6ce78b23163933ecf67269c54b618c30964
Reviewed-by: Volker Hilsheimer <[email protected]>
Reviewed-by: Doris Verria <[email protected]>
Diffstat (limited to 'src/gui/platform/unix/qxkbcommon.cpp')
0 files changed, 0 insertions, 0 deletions
