diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-15 23:02:02 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-15 21:07:27 -0800 |
commit | f5dbc3b44d56124dd8b1eaaaefd4e019fbd7db71 (patch) | |
tree | 2b73694710723af4a9419b8f77a2875f2e2715e1 /desktop-widgets/preferences | |
parent | 1d4075f368cd688af89211226df182052fbaf512 (diff) | |
download | subsurface-f5dbc3b44d56124dd8b1eaaaefd4e019fbd7db71.tar.gz |
Planner: support profile in planner print
The "Print" button in the planner dumps the QTextEdit to
a QPrinter via ::print(). This patch renders the Profile
to a Pixmap which is inserted as Base64 stream in an <img>
tag and fed on top of the QTextEdit HTML contents.
This route preserves the planner notes as text in PDF prints.
The quick alternative is to render the QTextDocument to
a QPixmap as well, but that will not preserve the text
and pagination becomes manual.
Possibly the QTextDocument can be rendered as a QPicture
but pagination is still an issue, while so far there is exactly
one user requesting this feature!
Related small change in ProfileWidget2:
Explicitly hide the tooltip when printMode is true.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
0 files changed, 0 insertions, 0 deletions