summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-08 14:55:47 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-09 09:30:35 +0800
commit262bc9c84b1ab04934e84d6671e6a2b7c19c9af3 (patch)
treee84907b28de4960188a56cac8e8336f3a2b36263 /qthelper.cpp
parent1c72b8b0545e6a13ea3db917a1434152c73a3c3b (diff)
downloadsubsurface-262bc9c84b1ab04934e84d6671e6a2b7c19c9af3.tar.gz
Add a string_to_depth() helper function to match our string_to_weight one
It's currently only used for the setting of the cylinder switching depth, but now that one should work with user-specified units (so you can set a max depth in feet even if you use metric, and vice versa). In the future, if we also make the unit preferences something you can pass in (with user preferences as a default argument value), we might want to use this for parsing the XML too, so that we'd honor explicit units in the XML strings. But the XML input unit preferences are not necessarily at all the same as the user preferences, so that does require us to extend the conversion functions to do possibly explicit unit preference selection. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
0 files changed, 0 insertions, 0 deletions