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:
Berthold Stoeger 2019-01-22 09:32:39 +01:00 committed by Dirk Hohndel
parent c383079626
commit de4e6792c6
4 changed files with 81 additions and 33 deletions

View file

@ -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 {