mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Core: move is-single-day-trip and count-shown functions into core
These functionality was used by the desktop filter. To unify desktop and mobile, move it into two new functions in divelist.c Since one of them is the only caller of is_same_day() move that likewise into divelist.c and make it of static linkage. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
68414531ad
commit
70897dd1b7
5 changed files with 40 additions and 25 deletions
|
|
@ -77,7 +77,6 @@ QString get_dive_duration_string(timestamp_t when, QString hoursText, QString mi
|
|||
QString get_dive_surfint_string(timestamp_t when, QString daysText, QString hoursText, QString minutesText, QString separator = " ", int maxdays = 4);
|
||||
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);
|
||||
QString get_trip_date_string(timestamp_t when, int nr, bool getday);
|
||||
QString uiLanguage(QLocale *callerLoc);
|
||||
QLocale getLocale();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue