subsurface/qt-models
Michael Keller 10fc3bfd47 Bugfix: Fix Incorrect Volumes Displayed for Tank Types.
Fix an issue introduced in #4148.
Essentially the refactoring missed the fact that in the imperial system
tank size is tracked as the free gas volume, but in the metric system
(which is the one used in most of Subsurface's calculations) tank size
is tracked as water capacity.
So when updating a tank template tracking imperial measurements, the
given (metric) volume in l has to be multiplied by the working pressure,
and vice versa.
This also combines all the logic dealing with `tank_info` data in one
place, hopefully making it less likely that this will be broken by
inconsistencies in the future.

Fixes #4239.

Signed-off-by: Michael Keller <github@ike.ch>
2024-06-09 11:15:59 +02:00
..
cleanertablemodel.cpp
cleanertablemodel.h
CMakeLists.txt
completionmodels.cpp core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
completionmodels.h core: replace dive master by dive guide 2022-02-15 09:35:43 -08:00
cylindermodel.cpp Desktop: Fix Gas Editing for Manually Added Dives. 2024-06-01 23:22:40 +12:00
cylindermodel.h
divecomputerextradatamodel.cpp
divecomputerextradatamodel.h
diveimportedmodel.cpp
diveimportedmodel.h
divelocationmodel.cpp
divelocationmodel.h
divepicturemodel.cpp
divepicturemodel.h
diveplannermodel.cpp Desktop: Fix Gas Editing for Manually Added Dives. 2024-06-01 23:22:40 +12:00
diveplannermodel.h Desktop: Fix Gas Editing for Manually Added Dives. 2024-06-01 23:22:40 +12:00
divesiteimportmodel.cpp
divesiteimportmodel.h Create DivesiteImportDialog to select sites to import 2019-05-06 10:48:44 +02:00
divesummarymodel.cpp
divesummarymodel.h
divetripmodel.cpp cleanup: remove unused roles in DiveTripModelBase 2024-06-05 09:16:32 +12:00
divetripmodel.h cleanup: remove unused roles in DiveTripModelBase 2024-06-05 09:16:32 +12:00
filterconstraintmodel.cpp
filterconstraintmodel.h
filtermodels.cpp
filtermodels.h
filterpresetmodel.cpp
filterpresetmodel.h
maplocationmodel.cpp cleanup: replace Q_FOREACH and foreach by range base for 2024-03-24 17:53:19 +01:00
maplocationmodel.h
messagehandlermodel.cpp
messagehandlermodel.h
mobilelistmodel.cpp
mobilelistmodel.h
models.cpp desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
models.h desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
tankinfomodel.cpp Bugfix: Fix Incorrect Volumes Displayed for Tank Types. 2024-06-09 11:15:59 +02:00
tankinfomodel.h desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
treemodel.cpp
treemodel.h Cleanup: reinstate override modifiers 2018-09-29 15:23:25 -07:00
weightmodel.cpp desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
weightmodel.h cleanup: replace to "dive.h" includes by more specific includes 2020-05-15 14:19:21 -07:00
weightsysteminfomodel.cpp desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
weightsysteminfomodel.h desktop: unglobalize ComboBox-models 2024-04-16 08:56:49 +12:00
yearlystatisticsmodel.cpp
yearlystatisticsmodel.h