subsurface/core/subsurface-qt
Berthold Stoeger f25fa2adc5 Cleanup: turn CylinderObjectHelper into value type
CylinderObjectHelper is used for structured formatting of cylinder
values in grantlee types. Instead of keeping a reference to a
cylinder, turn it into a value type containing the formatted strings.

This should be distinctly safer, as we don't risk having stale
references flying around. Moreover, we don't have to use pointers
but can use containers containing plain CylinderObjectHelper. Thus,
no explicit memory management is needed, making the code distinctly
easier to understand.

Sadly, currently grantlee does not support Q_GADGET based Q_PROPERTY.
Therefore a GRANTLEE_*_LOOKUP block has to be added. This can be
removed in due course, as a patch to remedy this issue is in current
grantlee master.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-08-22 10:13:40 -07:00
..
CylinderObjectHelper.cpp Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00
CylinderObjectHelper.h Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00
DiveListNotifier.cpp Dive list: implement proper Qt-model semantics for DiveTripModel 2018-10-11 16:22:27 -07:00
DiveListNotifier.h Cleanup: unify selection signals 2019-06-23 20:08:46 +02:00
DiveObjectHelper.cpp Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00
DiveObjectHelper.h Cleanup: turn CylinderObjectHelper into value type 2019-08-22 10:13:40 -07:00