From e6d884cf26161df65c2b4b8c39d6b4133760537b Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Thu, 11 May 2017 22:43:36 +0200 Subject: Creation of dive duration string and surface interval string Update the function to create the dive duration string in a way that it can be used also in info and stats tab and added some more flexibility. Changed layout for <1h freedives to "0:05:35" (w/o units) or "5:35min" (with units and :) or "5min 35sec" (with units with space). Add a new function to create the surface interval string. Completely remove old function get_time_string() and get_time_string_s(). Signed-off-by: Stefan Fuchs --- core/subsurface-qt/DiveObjectHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 0f3172195..9107223f4 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -124,7 +124,7 @@ QString DiveObjectHelper::gps_decimal() const QString DiveObjectHelper::duration() const { - return get_dive_duration_string(m_dive->duration.seconds, QObject::tr("h:"), QObject::tr("min")); + return get_dive_duration_string(m_dive->duration.seconds, QObject::tr("h"), QObject::tr("min")); } bool DiveObjectHelper::noDive() const -- cgit v1.2.3-70-g09d2