diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-12-29 11:14:34 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-29 11:14:34 -0800 |
commit | cab320201bc76f8ab5ca4cea5a5876ac31e79ee2 (patch) | |
tree | 3633f4f919c70c9282e0660c0dc8c50252c39161 /helpers.h | |
parent | adb5cc5d306f11f8b3749259623ce6aae616f532 (diff) | |
download | subsurface-cab320201bc76f8ab5ca4cea5a5876ac31e79ee2.tar.gz |
Facebook integration: improve the confirmation UI experience
Date and time needs to be a string, not a time_t.
Duration should be called that (and not time) and wasn't hooked up.
Also added a helper to get the duration string.
Finally reordered the components of the text that is shown to make it more
natural (or I should say, more in line with the order we use elsewhere).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r-- | helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ QString getSubsurfaceDataPath(QString folderToFind); extern const QString get_dc_nickname(const char *model, uint32_t deviceid); int gettimezoneoffset(timestamp_t when = 0); int parseTemperatureToMkelvin(const QString &text); +QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText); QString get_dive_date_string(timestamp_t when); QString get_short_dive_date_string(timestamp_t when); QString get_trip_date_string(timestamp_t when, int nr); |