subsurface/profile-widget
Berthold Stoeger 03f9e29146 Profile: transport gas id and timestamp via lambda
When adding a gas change event via a context menu, the gas-id and
timestamp were passed in two distinct ways.

1) The gas id was extracted from the text of the action. This meant
   doing rather complicated parsing.
2) The timestamp was passed via the "user data" of the action, which
   means transporting via "QVariant".

There is a much simpler way to pass arbitrary data, that is strongly
typed: lambdas. Instead of shoehorning the data onto the action in
an archaic way, we can simply connect to a stateful lambda. That's
what they're for after all.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-01-30 19:33:21 +02: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 build-system: move qmlprofile to profile-widgets/CMakeLists.txt 2019-12-24 06:18:36 +09:00
divecartesianaxis.cpp Fix math in valueAt 2019-08-08 08:56:44 -07:00
divecartesianaxis.h Cleanup: replace virtual by override where appropriate 2018-07-31 11:02:34 +02:00
diveeventitem.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
diveeventitem.h Profile: take int instead of bool in DiveEventItem::recalculatePos 2019-07-12 09:59:28 +02: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: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
divepixmapitem.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
diveprofileitem.cpp Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
diveprofileitem.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07: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 Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
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: transport gas id and timestamp via lambda 2020-01-30 19:33:21 +02:00
profilewidget2.h Profile: transport gas id and timestamp via lambda 2020-01-30 19:33:21 +02:00
qmlprofile.cpp Cleanup: Turn QMLProfile::diveId from QString to int 2019-12-24 06:16:39 +09:00
qmlprofile.h Cleanup: Turn QMLProfile::diveId from QString to int 2019-12-24 06:16:39 +09:00
ruleritem.cpp Profile: change get_plot_pressure to take index instead of pointer 2019-11-09 19:19:04 +01:00
ruleritem.h Profile: Change RulerItem2 to use index instead of pointer 2019-11-09 19:19:04 +01:00
tankitem.cpp Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
tankitem.h Profile: don't crash when there are no cylinders 2019-11-09 19:19:04 +01:00