mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: quick implementation of negation
Add negate buttons to the Tags, People, Location and Equipment filters. Currently, if nothing is entered the filter is ignored whether negate is on or off. One might think about filtering all dives without tags, etc. instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
c383079626
commit
de4e6792c6
4 changed files with 81 additions and 33 deletions
|
|
@ -35,9 +35,12 @@ struct FilterData {
|
|||
QStringList people;
|
||||
QStringList location;
|
||||
QStringList equipment;
|
||||
bool tagsNegate = false;
|
||||
bool peopleNegate = false;
|
||||
bool locationNegate = false;
|
||||
bool equipmentNegate = false;
|
||||
bool logged = true;
|
||||
bool planned = true;
|
||||
bool invertFilter;
|
||||
};
|
||||
|
||||
class MultiFilterSortModel : public QSortFilterProxyModel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue