subsurface/profile-widget
Berthold Stoeger ed83f6ce32 profile: only keep pointer to plot_info in ruler objects
Now this one was strange:

The ruler items keep a copy of the plot_info struct. However,
only a shallow copy is made (the actual plot data is not copied).
This means that the data is only valid as long as the source
plot_info is valid. But if that is guaranteed, we simply can
keep a pointer instead of the full object.

I wonder if it wouldn't be better still to keep a pointer to
the profile and query that for the plot info?

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2022-03-13 15:08:01 -07:00
..
animationfunctions.cpp profile: remove unused animation functions 2021-12-17 11:54:23 -08:00
animationfunctions.h profile: remove unused animation functions 2021-12-17 11:54:23 -08:00
CMakeLists.txt profile: cache pixmaps for dive event items 2021-12-17 11:54:23 -08:00
divecartesianaxis.cpp core: fold display.h into profile.h 2022-03-13 15:07:33 -07:00
divecartesianaxis.h profile: don't show 0m label 2021-12-17 11:54:23 -08:00
diveeventitem.cpp profile: don't plot event-icons outside of range 2021-12-17 11:54:23 -08:00
diveeventitem.h profile: don't plot event-icons outside of range 2021-12-17 11:54:23 -08:00
divehandler.cpp profile: rewrite ProfileScene::pointOnProfile() 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
divepercentageitem.cpp profile: fix typo in color generating code 2022-03-13 14:58:34 -07:00
divepercentageitem.h cleanup: remove unused argument and private member 2022-03-12 08:28:32 -08:00
divepixmapcache.cpp mobile: better scaling of profile items 2022-03-13 15:06:13 -07:00
divepixmapcache.h profile: cache pixmaps for dive event items 2021-12-17 11:54:23 -08: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: use unique_ptr to store DiveTextItems 2021-12-17 11:54:23 -08:00
diveprofileitem.h profile: use unique_ptr to store DiveTextItems 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: improve calculation of the right border 2021-12-17 11:54:23 -08:00
divetextitem.h profile: improve calculation of the right border 2021-12-17 11:54:23 -08:00
divetooltipitem.cpp core: fold display.h into profile.h 2022-03-13 15:07:33 -07:00
divetooltipitem.h core: fold display.h into profile.h 2022-03-13 15:07:33 -07:00
profilescene.cpp cleanup: remove redundant get_dive_dc() calls 2022-03-12 18:33:34 +01:00
profilescene.h core: fold display.h into profile.h 2022-03-13 15:07:33 -07:00
profilewidget2.cpp profile: don't use global dc_number variable in profile 2022-03-13 15:07:33 -07:00
profilewidget2.h profile: automatically enter edit mode 2022-03-12 18:33:34 +01:00
qmlprofile.cpp mobile: better scaling of profile items 2022-03-13 15:06:13 -07:00
qmlprofile.h profile: merge plotDive() into draw() call 2021-12-17 11:54:23 -08:00
ruleritem.cpp profile: only keep pointer to plot_info in ruler objects 2022-03-13 15:08:01 -07:00
ruleritem.h profile: only keep pointer to plot_info in ruler objects 2022-03-13 15:08:01 -07:00
tankitem.cpp profile: fix tankbar 2022-01-17 13:05:38 -08:00
tankitem.h profile: only plot visible range of tank info 2021-12-17 11:54:23 -08:00