subsurface/core/subsurface-qt
Berthold Stoeger 8dea2ada3b Undo: turn dive- and trip-fields into flags
The divesEdited signal sends the changed field as a parameter.
Since some undo-commands change multiple fields, this led to
numerous signals for a single command. This in turn would lead
to multiple profile-reloads and statistic recalculations.

Therefore, turn the enum into a bitfield. For simplicity,
provide a constructor that takes classical flags and turns
them into the bitfield. This is necessary because C-style
named initialization is only supported on C++20 onward!

Is this somewhat overengineered? Yes, maybe.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-10-26 11:36:23 -07:00
..
CylinderObjectHelper.cpp Cleanup: make cylinder_t argument to CylinderObjectHelper const 2019-09-14 13:20:59 +02:00
CylinderObjectHelper.h Cleanup: make cylinder_t argument to CylinderObjectHelper const 2019-09-14 13:20:59 +02:00
DiveListNotifier.cpp Dive list: implement proper Qt-model semantics for DiveTripModel 2018-10-11 16:22:27 -07:00
DiveListNotifier.h Undo: turn dive- and trip-fields into flags 2019-10-26 11:36:23 -07:00
DiveObjectHelper.cpp Core: move cylinder list getter into helper function 2019-10-20 16:08:55 -04:00
DiveObjectHelper.h Grantlee: split out grantlee-only property from DiveObjectHelper 2019-09-14 13:20:59 +02:00