subsurface/profile-widget
Berthold Stoeger 15f20961c7 profile: render DiveTextItem onto a pixmap
The DiveTextItems were redrawn on every paint() call. This was
a prohibitively expensive operation (converting the text into
a path, drawing an outline, etc.), which was called numerous
times.

Instead, render the text only when changing into a QPixmap
and blit that pixmap in the paint() call.

This will make it possible to do absolutely positioned
DiveTextItems. So far they were placed relatively in
scene coordinates ranging from 0-100(!).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2021-12-17 11:54:23 -08:00
..
animationfunctions.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
animationfunctions.h Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
CMakeLists.txt profile: don't compile ProfileWidget2 on mobile 2021-12-17 11:54:23 -08:00
divecartesianaxis.cpp profile: set text and brush of DiveTextItem concurrently 2021-12-17 11:54:23 -08:00
divecartesianaxis.h profile: add width() function to DiveCartesian axis 2021-12-17 11:54:23 -08:00
diveeventitem.cpp profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00
diveeventitem.h profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00
divehandler.cpp profile: move axes to ProfileScene 2021-12-17 11:54:23 -08:00
divehandler.h profile: pass dive to DiveHandler 2021-01-10 15:57:39 -08:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
divepixmapitem.h profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
diveprofileitem.cpp profile: set text and brush of DiveTextItem concurrently 2021-12-17 11:54:23 -08:00
diveprofileitem.h profile: set alignment and scale of DiveTextItem at construction 2021-12-17 11:54:23 -08:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp profile: render DiveTextItem onto a pixmap 2021-12-17 11:54:23 -08:00
divetextitem.h profile: render DiveTextItem onto a pixmap 2021-12-17 11:54:23 -08:00
divetooltipitem.cpp cleanup: replace membuffer by membufferpp in C-code 2021-07-23 11:22:43 -07:00
divetooltipitem.h cleanup: remove function static variables 2021-07-20 09:27:35 -07:00
profilescene.cpp profile: set text and brush of DiveTextItem concurrently 2021-12-17 11:54:23 -08:00
profilescene.h profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00
profilewidget2.cpp profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00
profilewidget2.h profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00
qmlprofile.cpp profile: for printing/mobile access ProfileScene directly 2021-12-17 11:54:23 -08:00
qmlprofile.h profile: for printing/mobile access ProfileScene directly 2021-12-17 11:54:23 -08:00
ruleritem.cpp profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
ruleritem.h profile: pass dive to RulerItem 2021-01-10 15:57:39 -08:00
tankitem.cpp profile: set text and brush of DiveTextItem concurrently 2021-12-17 11:54:23 -08:00
tankitem.h profile: rename printFontScale to dpr (device pixel ratio) 2021-12-17 11:54:23 -08:00