mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: move number of shown dives to core
We mark hidden/shown dives in the core but store the number of shown dives in the MultiFilterSortModel. Move this datum to the core for improved locality. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cbd98edb73
commit
2d09819ddf
5 changed files with 10 additions and 10 deletions
|
|
@ -61,7 +61,6 @@ public:
|
|||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
||||
bool showDive(const struct dive *d) const;
|
||||
bool updateDive(struct dive *d); // returns true if visibility status changed
|
||||
int divesDisplayed;
|
||||
bool lessThan(const QModelIndex &, const QModelIndex &) const override;
|
||||
bool diveSiteMode() const; // returns true if we're filtering on dive site
|
||||
const QVector<dive_site *> &filteredDiveSites() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue