diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-27 23:09:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-29 16:13:03 -0700 |
commit | 581eb1f563df9e7fa72371d936521e0bd55d9f18 (patch) | |
tree | b269b6566f85aadcc0951fc8d40a0cbd2cdbf7e5 /desktop-widgets/filterwidget2.h | |
parent | 2f5223035a9d43b933b0baf64823dab84b5d8cea (diff) | |
download | subsurface-581eb1f563df9e7fa72371d936521e0bd55d9f18.tar.gz |
filter: create a primitive "create filter preset" dialog
The dialog asks the user for a name and warns if the name
already exists, i.e. an old filter preset will be overwritten.
Possibly, this should contain an auto-completion facility in
the case that the user wants to overwrite old presets.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/filterwidget2.h')
-rw-r--r-- | desktop-widgets/filterwidget2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget2.h b/desktop-widgets/filterwidget2.h index 462200bf8..334b9737c 100644 --- a/desktop-widgets/filterwidget2.h +++ b/desktop-widgets/filterwidget2.h @@ -33,6 +33,7 @@ private slots: void constraintRemoved(const QModelIndex &parent, int first, int last); void constraintChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles); void constraintsReset(); + void on_addSetButton_clicked(); private: bool ignoreSignal; @@ -41,6 +42,7 @@ private: bool validFilter; void addConstraint(filter_constraint_type type); std::vector<std::unique_ptr<FilterConstraintWidget>> constraintWidgets; + FilterData createFilterData() const; }; #endif |