Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[layouts] Nicer detection of rendering in a view
In compositions, a flag must be explicitly set to indicate whether the render occuring is for "previews" (i.e. rendering in a graphics view) or outputs (i.e. rendering to a image/pdf/other destination device) This isn't nice api. So we avoid this by checking the paint device type when an item is being rendered.
- Loading branch information
1 parent
625eef8
commit 9630a39
Showing
4 changed files
with
134 additions
and
7 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
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