summaryrefslogtreecommitdiffstats
path: root/qt-models/cleanertablemodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-13 23:39:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-22 15:18:31 -0800
commitee553e059d55f3376a7026a217e879f579b90e17 (patch)
tree6ee0db846caa3fb088a3cea85b03c746976c5b76 /qt-models/cleanertablemodel.h
parenta45c5faa8c7aab7d4263eb98d85d5e7cd589ef73 (diff)
downloadsubsurface-ee553e059d55f3376a7026a217e879f579b90e17.tar.gz
Filter: move actual filtering loop to core/divefilter.cpp
The DiveFilter class defined the showDive() function to test whether a dive should be filtered or not. This was used in DiveTripModel to loop over all dives or all dives affected by an editing action. This restricts us in how we do filtering: We can't use indexes that give us directly the result. To make the filtering more flexible, move the actual loops that do the filtering to the DiveFilter class. The undo-commands likewise called directly the showDive() function to check whether newly added dives are shown. Use the new interface here as well. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cleanertablemodel.h')
0 files changed, 0 insertions, 0 deletions