subsurface/profile-widget
Berthold Stoeger fceb3691d9 profile: move picture removal from DivePictureItem to ProfileWidget2
On clicking the DivePictureItem "trash" icon, the item would delete
the picture it represents in the currently displayed dive. This needed
an access to the global "displayed_dive" variable, which we want
to get rid of to make the profile more flexible. For example, we
want to render the profile for printing without messing with global
state.

One solution would be to save the dive with every DivePictureItem.
This commit follows a more Qt-ish strategy by handling this via
signals: The close button emits a signal that is recast by the
DivePictureItem and ultimately handled by the ProfileWidget2,
which knows which dive it represents.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-12-19 20:19:51 +01: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: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divecartesianaxis.cpp preferences: create global settingsChanged signal 2020-12-12 15:52:40 -08:00
divecartesianaxis.h cleanup: turn protected into private members 2020-04-13 17:18:37 -07:00
diveeventitem.cpp cleanup: split out divecomputer functions from dive.c 2020-10-25 13:59:52 -07:00
diveeventitem.h Profile: take int instead of bool in DiveEventItem::recalculatePos 2019-07-12 09:59:28 +02:00
divehandler.cpp profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divehandler.h profile: move DiveHandler to profile-widget folder 2020-12-12 15:52:40 -08:00
divelineitem.cpp
divelineitem.h
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 preferences: create global settingsChanged signal 2020-12-12 15:52:40 -08:00
diveprofileitem.h cleanup: turn protected into private members 2020-04-13 17:18:37 -07:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h
divetooltipitem.cpp Profile: clear tooltip's plotInfo in ProfileWidget2::setEmptyState 2019-11-16 08:29:53 -08:00
divetooltipitem.h code cleanup: use QElapsedTimer instead of QTime 2020-01-10 02:37:03 +09:00
profilewidget2.cpp profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
profilewidget2.h profile: move picture removal from DivePictureItem to ProfileWidget2 2020-12-19 20:19:51 +01:00
qmlprofile.cpp cleanup: fix initialization order in QMLProfile constructor 2020-03-30 13:58:10 -07:00
qmlprofile.h mobile/profile: adjust offsets when scaling 2020-03-25 09:28:05 -07:00
ruleritem.cpp preferences: create global settingsChanged signal 2020-12-12 15:52:40 -08:00
ruleritem.h cleanup: turn protected into private members 2020-04-13 17:18:37 -07:00
tankitem.cpp cleanup: break out event-related code into event.[c|h] 2020-10-25 13:59:52 -07:00
tankitem.h Profile: don't crash when there are no cylinders 2019-11-09 19:19:04 +01:00