subsurface/mobile-widgets
Berthold Stoeger 4a165980e7 undo: pass dive as unique_ptr to addDive()
Before, a non-owning pointer was passed and the dive moved
away from the dive. Instead, let the caller decide if they
still want to keep a copy of the dive, or give up ownership:

In MainWindow and QMLManager new dives are generated, so
one might just as well give up ownership. In contrast,
the planner works on a copy (originally the infamous
"displayed_dive") and now moves the data manually.

This commit also removes duplicate code, by moving the
"create default dive" code from MainWindow and QMLManager
to struct dive.

Finally, determination of the "time zone offset" is not done
in POSIX, since we want to avoid calls form the core into
Qt.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-08-13 19:28:30 +02:00
..
3rdparty mobile/UI: correctly update title bar font size 2021-01-19 12:42:48 -08:00
qml Mobile: Fix QML Warnings. 2024-06-06 16:17:32 +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 Mobile: Fix Gradient Factor Preference Setting. 2024-01-27 20:55:32 -08:00
qmlmanager.cpp undo: pass dive as unique_ptr to addDive() 2024-08-13 19:28:30 +02:00
qmlmanager.h mobile: save changes from main event loop 2024-04-04 13:57:00 +02: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