mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: break out showDive() function from filterAcceptsRow()
To make dive-filtering accessible from other parts of the code, break out the actual dive-filtering code into a function that takes a pointer-to-dive instead of QModelIndex. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8a394b9db4
commit
13fbca3f55
2 changed files with 46 additions and 34 deletions
|
|
@ -97,6 +97,7 @@ public:
|
|||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
||||
void addFilterModel(FilterModelBase *model);
|
||||
void removeFilterModel(FilterModelBase *model);
|
||||
bool showDive(const struct dive *d) const;
|
||||
int divesDisplayed;
|
||||
public
|
||||
slots:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue