diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-14 14:16:25 -0400 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-08-14 14:16:25 -0400 |
commit | 13fbca3f5522e31a81aaad0cfc830ee751918c31 (patch) | |
tree | 64699f2c470a6e6c1a7e9f1d7d1e6eb15f422115 /qt-models/filtermodels.h | |
parent | 8a394b9db42a21f684c6ae85005a55c29d060c38 (diff) | |
download | subsurface-13fbca3f5522e31a81aaad0cfc830ee751918c31.tar.gz |
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>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r-- | qt-models/filtermodels.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h index 0c35f2612..98212979b 100644 --- a/qt-models/filtermodels.h +++ b/qt-models/filtermodels.h @@ -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: |