summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdfwriter.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-09-16 15:18:24 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-09-22 11:50:58 +0000
commitc7fa644c3880fada2e7047bcb46ec5e2c8d1b239 (patch)
tree338748f855dba9ade5532ef7870a5278aea69431 /src/gui/painting/qpdfwriter.cpp
parent363e6e3d52ff7a048f0db9166f6e43137c92669c (diff)
QFileDialog: preserve window state after delayed widget dialog creation
The widget UI for a QFileDialog is sometimes created lazily as a fallback when the dialog is about to show (the reson being that the platform reports that is has native dialogs, but fails showing it, perhaps because of unsupported configuration). In that case, the widget setup code will resize the dialog to default sizes, and as such, wipe out any explicitly set geometry or window states. This is especially visible on iOS, since there we show all windows maximized by default. If the fallback triggers, the dialog will loose the maximized state and be shown partially outside the screen without a way to close it. This patch will make sure that even if the widgets are created late, we still respect any geometry or window states set by the application. Note: The bug became visible after: 6468cf4e Change-Id: Ib2b87cd24e959c547208aa1cf76d683b9cbc283a Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/gui/painting/qpdfwriter.cpp')
0 files changed, 0 insertions, 0 deletions