diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-12-01 14:45:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-01 15:47:51 -0800 |
commit | d8350ef238cb0e459d2ee012d11893e65e483541 (patch) | |
tree | f8a562f7e3a27238498073e84f3c9d78651ac575 /qt-models | |
parent | 4d605ce51fcb4bbadf83471568d9f315844f904b (diff) | |
download | subsurface-d8350ef238cb0e459d2ee012d11893e65e483541.tar.gz |
Document background computation of variations
Update changelog, update user manual, clarify
meaning in dive notes.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index c03e4612c..8b57f3d8c 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -1085,11 +1085,12 @@ void DivePlannerPointsModel::computeVariations(struct diveplan *original_plan, s restore_deco_state(save, &ds, false); char buf[200]; + char *deco_time = tr("Stop times").toUtf8().data(); if (prefs.units.length == units::METERS) - sprintf(buf, "+ %d:%02d /m + %d:%02d /min", FRACTION(analyzeVariations(shallower, original, deeper, "m"),60), + sprintf(buf, ", %s + %d:%02d /m + %d:%02d /min", deco_time, FRACTION(analyzeVariations(shallower, original, deeper, "m"),60), FRACTION(analyzeVariations(shorter, original, longer, "min"), 60)); else - sprintf(buf, "+ %d:%02d /ft + %d:%02d /min", + sprintf(buf, ", %s + %d:%02d /ft + %d:%02d /min", deco_time, FRACTION(analyzeVariations(shallower, original, deeper, "ft") * feet_to_mm(1.0) / 1000,60), FRACTION(analyzeVariations(shorter, original, longer, "min"), 60)); |