mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
filter: add modified flag
When editing the filter, the modified flag is set and shown to the user. After saving / loading / clearing the filter, the flag is reset. This simulates (probably badly) a usual load/save interface. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1ed61aeabf
commit
cd27e36b8f
2 changed files with 25 additions and 10 deletions
|
@ -28,7 +28,7 @@ protected:
|
|||
private slots:
|
||||
void clearFilter();
|
||||
void closeFilter();
|
||||
void updateFilter();
|
||||
void filterChanged();
|
||||
void constraintAdded(const QModelIndex &parent, int first, int last);
|
||||
void constraintRemoved(const QModelIndex &parent, int first, int last);
|
||||
void constraintChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
|
||||
|
@ -40,11 +40,13 @@ private slots:
|
|||
|
||||
private:
|
||||
bool ignoreSignal;
|
||||
bool presetModified;
|
||||
Ui::FilterWidget2 ui;
|
||||
FilterConstraintModel constraintModel;
|
||||
void addConstraint(filter_constraint_type type);
|
||||
std::vector<std::unique_ptr<FilterConstraintWidget>> constraintWidgets;
|
||||
FilterData createFilterData() const;
|
||||
void updateFilter();
|
||||
void setFilterData(const FilterData &filterData);
|
||||
void loadPreset(int index);
|
||||
void selectPreset(int i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue