subsurface/mobile-widgets
Berthold Stoeger ae81b42fe2 core: introduce a few user-defined literals for unit types
Thise makes initialization of unit types more palatable.

For example:

    surface.time = sample.time - duration_t { .seconds = 20 };
=>  surface.time = sample.time - 20_sec;

    delta_depth.mm = feet_to_mm(1.0); // 1ft
=>  delta_depth = 1_ft;

    get_cylinderid_at_time(..., { .seconds = 20 * 60 + 1 }));
=>  get_cylinderid_at_time(..., 20_min + 1_sec));

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:23:07 +02:00
..
3rdparty mobile/UI: correctly update title bar font size 2021-01-19 12:42:48 -08:00
qml fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
CMakeLists.txt statistics: add a skeleton StatsManager class 2021-01-10 15:16:52 -08:00
qmlinterface.cpp Mobile: Fix Gradient Factor Preference Setting. 2024-01-27 20:55:32 -08:00
qmlinterface.h Fix layering violations in DivePlannerPointsModel. 2024-08-26 12:36:31 +12:00
qmlmanager.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
qmlmanager.h fix copy/paste of dive-site 2024-08-17 23:34:16 +12:00
statsmanager.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
statsmanager.h statistics: switch themes on the mobile version 2022-03-16 15:26:54 -07:00
themeinterface.cpp core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
themeinterface.h cleanup: replace function static variable by member variable 2022-03-16 15:26:54 -07:00