-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[composer] Fix page orientation and size ignored when printing
Turns out QPrinter::setPaperSize silently flips the width and height of a page if the printer orientation is set to landscape. So, make sure we manually set the orientation to portrait before setting the page size so that we can be sure the QPrinter is set to the correct page size. This also restores the 2.4 behaviour where users could override printed page size in the printer properties dialog (but only if no data defined page size settings are active). (fix #11352)
- Loading branch information
1 parent
4906d56
commit 8ab0674
Showing
3 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters