mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add select-all, deselect-all and invert-selection options to filters
To every filter list add a menu button that allows selection of all, selection of none or inversion of selection. Implements #435. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
668635e98e
commit
7451517e4a
4 changed files with 33 additions and 0 deletions
|
@ -11,6 +11,8 @@ class FilterModelBase : public QStringListModel {
|
|||
public:
|
||||
virtual bool doFilter(struct dive *d, QModelIndex &index0, QAbstractItemModel *sourceModel) const = 0;
|
||||
void clearFilter();
|
||||
void selectAll();
|
||||
void invertSelection();
|
||||
std::vector<char> checkState;
|
||||
bool anyChecked;
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue