diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-01-18 14:21:50 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2019-02-07 06:49:21 +0000 |
commit | 790cf25f9d811f2cda7e252b4f1844e8fce27e2a (patch) | |
tree | 980869b3a253a15ab4fbcebbaea76b76d541cf93 /src/gui/platform/platform.pri | |
parent | c58df2d12e6087c4b880a0210062ca77b6aed046 (diff) |
wasm: add local file access private API
Access to the local file system is restricted by the
Web sandbox, and a separate API an implementation is
needed to facilitate this for Qt applications.
This adds a private asynchronous callback-based C++
API for opening a file dialog and reading file content.
The implementation uses a file input html element to
show a file dialog, and then the uses the native File
and FileReader APIs to read the selected file(s).
Change-Id: I4e28baa032d7c3cd63241465f0ae55efd219a05b
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/gui/platform/platform.pri')
-rw-r--r-- | src/gui/platform/platform.pri | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/platform/platform.pri b/src/gui/platform/platform.pri new file mode 100644 index 0000000000..1fe2db81b0 --- /dev/null +++ b/src/gui/platform/platform.pri @@ -0,0 +1 @@ +wasm:include(wasm/wasm.pri) |