subsurface/profile-widget
Lubomir I. Ivanov f5dbc3b44d 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>
2015-11-15 21:07:27 -08:00
..
animationfunctions.cpp
animationfunctions.h
CMakeLists.txt Profile: add define when building subsurface-mobile 2015-11-05 16:05:19 -08:00
divecartesianaxis.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
divecartesianaxis.h Untagle DiveCartesianAxis from MainWindow 2015-11-06 09:58:08 -08:00
diveeventitem.cpp
diveeventitem.h
divelineitem.cpp
divelineitem.h
divepixmapitem.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
divepixmapitem.h
diveprofileitem.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
diveprofileitem.h Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Profile: include Qt headers directly 2015-11-05 17:05:30 -08:00
divetextitem.h
divetooltipitem.cpp divetooltipitem.cpp: prettify the tooltip bounds and padding 2015-11-10 09:08:57 -08:00
divetooltipitem.h
profilewidget2.cpp Planner: support profile in planner print 2015-11-15 21:07:27 -08:00
profilewidget2.h Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
ruleritem.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
ruleritem.h
tankitem.cpp
tankitem.h