diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-19 21:54:18 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-12-04 13:00:23 +0100 |
commit | c54e58e078f656222478ba62d736967fb1370cc8 (patch) | |
tree | d1bcfeeb8baa14022da06ca9acc886d1e842b4d5 /qt-models/divetripmodel.h | |
parent | 4ca65894c842a042b0d21a5449355be475f6fe7c (diff) | |
download | subsurface-c54e58e078f656222478ba62d736967fb1370cc8.tar.gz |
Dive trip model: send changed signals for top-level items
Send signals if the shown-status of top level items changed.
Do this in two passes to be able to use the previously created
function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 5952fa558..9ed2189a0 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -133,7 +133,7 @@ private: void recalculateFilter(); void divesChangedTrip(dive_trip *trip, const QVector<dive *> &dives); void divesTimeChangedTrip(dive_trip *trip, timestamp_t delta, const QVector<dive *> &dives); - bool calculateFilterForTrip(const std::vector<dive *> &dives, const DiveFilter *filter, int parentIndex); + bool calculateFilterForTrip(const std::vector<dive *> &dives, const DiveFilter *filter, quintptr parentIndex); // The tree model has two levels. At the top level, we have either trips or dives // that do not belong to trips. Such a top-level item is represented by the "Item" |