mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Consistently show dive duration based on preferences
We now respect the settings in the preferences and also only show the duration as minutes and seconds if the dive is a free dive. Fixes #361 Fixes #362 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
876b479d69
commit
92d24a2912
3 changed files with 15 additions and 25 deletions
|
@ -36,7 +36,7 @@ int parseWeightToGrams(const QString &text);
|
|||
int parsePressureToMbar(const QString &text);
|
||||
int parseGasMixO2(const QString &text);
|
||||
int parseGasMixHE(const QString &text);
|
||||
QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText);
|
||||
QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText, QString secondsText = "", bool isFreeDive = false);
|
||||
QString get_dive_date_string(timestamp_t when);
|
||||
QString get_short_dive_date_string(timestamp_t when);
|
||||
bool is_same_day (timestamp_t trip_when, timestamp_t dive_when);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue