diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-06-19 16:33:49 -1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-19 21:40:38 -0700 |
commit | 45d9ca09de0bae43f54b7ab0fb08d8c6406be7a2 (patch) | |
tree | 250ec5cc3892208a8b41e78a49c89acd577811af /qt-ui/preferences.cpp | |
parent | 02f2768148ecc6d4b547506fe841a5dc8f3bedd2 (diff) | |
download | subsurface-45d9ca09de0bae43f54b7ab0fb08d8c6406be7a2.tar.gz |
Fix the imperial cylinder size calculations in equipment handling
This makes us use the same linear calculations as we did in the Gtk
branch. We don't take compressibility into account, since tank
manufacturers don't seem to either. A Luxfer AL80 is 11.1 liters, and
with the standard (non-compressibility) calculations, 80 cuft of air at
3000 psi is 11.094 liter, so that is the right model to use.
Also, stop with the horrible "units in edited numbers" stuff. It uses
up precious space, and doesn't look any better. If the user asked for
cuft, give him cuft without making a big deal about it.
Oh, and if the working pressure doesn't exist, sizes are always in
liters. That's what we did in the Gtk branch, that's what we do here.
Again, no reason to even bother stating units, it's not helping.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
0 files changed, 0 insertions, 0 deletions