diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-22 09:32:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-26 11:13:01 -0800 |
commit | de4e6792c67992747d3deecd080ca95a7b15e81d (patch) | |
tree | 33c28460a0e9ca8eda0f8e99f462f40d002f2ef7 /qt-models/filtermodels.h | |
parent | c383079626178269bf0a3afefe6828a1c44d4d76 (diff) | |
download | subsurface-de4e6792c67992747d3deecd080ca95a7b15e81d.tar.gz |
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>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r-- | qt-models/filtermodels.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h index 7ef50df92..39f6f83e4 100644 --- a/qt-models/filtermodels.h +++ b/qt-models/filtermodels.h @@ -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 { |