diff options
| author | Chris Von Bargen <christopher.vonbargen@schrodinger.com> | 2023-12-18 10:28:34 -0500 |
|---|---|---|
| committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-12-28 17:16:12 +0100 |
| commit | 7c5cf8cae054954975a3e262f7fe3cd9897d67f4 (patch) | |
| tree | ec95979625f3472012bd1c2b8ebaa853fcd9f5a3 /src/opengl/qopenglcompositor.cpp | |
| parent | 7372b3ab6748b68f1c5fba1f61df8083ce719bc5 (diff) | |
Add parent arg to QFileDialog::getOpenFileContent and saveFileContent
This change updates getOpenFileContent to provide a parent when the
non-WASM fallback to a QFileDialog is created, which avoids issues
where this call is made inside another application. Specifically,
if a QDialog is created lacking a parent to the main window, it will
prevent interaction with that dialog. This patch addresses that problem
with window modality.
This change also updates saveFileContent to provide a parent for
the fallback mechanism, so that both static APIs that interact
with WASM/non-WASM dialogs have comparable behavior.
The new parent argument is updated in the documentation. Documentation
is clarified in terms of usage outside Qt for WebAssembly.
[ChangeLog][QtWidgets][QFileDialog] Adds an overload to the
static methods getOpenFileContent and saveFileContent with a
new parent argument which always no-ops in the WASM environment.
Fixes: QTBUG-118396
Pick-to: 6.7 6.6 6.5
Change-Id: Ic59aee386631172d4a29b42fe11e5af318474a1d
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/opengl/qopenglcompositor.cpp')
0 files changed, 0 insertions, 0 deletions
