summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2018-11-05 17:07:03 +0200
committerAhmad Samir <a.samirh78@gmail.com>2019-02-26 19:44:09 +0000
commitac7f46dd9114051756f56571b9cb3bda002314a1 (patch)
tree8161fc94965c5658323420d07ca51bf2ca6b1590 /src/corelib
parentc93670c5a03cecbca9bb43aff65ceea3a401c7b1 (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/corelib')
0 files changed, 0 insertions, 0 deletions