diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2018-11-05 17:07:03 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2019-02-26 19:44:09 +0000 |
commit | ac7f46dd9114051756f56571b9cb3bda002314a1 (patch) | |
tree | 8161fc94965c5658323420d07ca51bf2ca6b1590 /src/gui/opengl | |
parent | c93670c5a03cecbca9bb43aff65ceea3a401c7b1 (diff) |
Unix: QPageSetupDialog: Use print device default paper size
When invoking QPageSetupDialog from QPrintPreviewDialog, don't construct
a new QPageSetupDialog every time the pageSetup action is triggered, instead
reuse the dialog if it's already been created. This way setPrinter is called
only once. This matches how QPrintDialog invokes QPageSetupDialog.
Set the default print device paper size in initPageSizes() instead of
setPrinter().
Change-Id: Ic82e6dd47ee00ecdd942c5ba59dbf09fb18ef218
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/gui/opengl')
0 files changed, 0 insertions, 0 deletions