mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Map: show all dive sites when in dive-site filter mode
When on the dive site tab or editing a dive site, we want to show all dive sites so that the user can related different dive sites. Therefore export a "in dive site mode" flag from the filter model and don't filter in that case in MapWidgetHelper. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
23cf85e89c
commit
3e05d61eb9
3 changed files with 19 additions and 2 deletions
|
@ -278,6 +278,11 @@ void MultiFilterSortModel::stopFilterDiveSites()
|
|||
myInvalidate();
|
||||
}
|
||||
|
||||
bool MultiFilterSortModel::diveSiteMode() const
|
||||
{
|
||||
return !dive_sites.isEmpty();
|
||||
}
|
||||
|
||||
bool MultiFilterSortModel::lessThan(const QModelIndex &i1, const QModelIndex &i2) const
|
||||
{
|
||||
// Hand sorting down to the source model.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue