mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Core: remove "when" field of struct dive_trip
The when field gives the time of the first dive. Instead of keeping this field in sync, replace it by a function that determines the time of the first dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
431b2bb845
commit
64e6e435f8
11 changed files with 23 additions and 52 deletions
|
|
@ -104,7 +104,7 @@ private:
|
|||
int findTripIdx(const dive_trip *trip) const;
|
||||
int findDiveIdx(const dive *d) const; // Find _top_level_ dive
|
||||
int findDiveInTrip(int tripIdx, const dive *d) const; // Find dive inside trip. Second parameter is index of trip
|
||||
int findInsertionIndex(timestamp_t when) const; // Where to insert item with timestamp "when"
|
||||
int findInsertionIndex(const dive_trip *trip) const; // Where to insert trip
|
||||
|
||||
// Access trip and dive data
|
||||
static QVariant diveData(const struct dive *d, int column, int role);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue