diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 10:41:52 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 10:41:52 -0500 |
| commit | 3c25117fe163f7fab7afa22ba171ea2d41112f23 (patch) | |
| tree | a2a48759382677373bb1d23c5473e85c6ec0dd0e /src/filterlist.h | |
| parent | d2073ef2bd62527034864fd0cacd5537aff33218 (diff) | |
three modes for separators, save state
renamed enumerators
Diffstat (limited to 'src/filterlist.h')
| -rw-r--r-- | src/filterlist.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/filterlist.h b/src/filterlist.h index fac1d683..671462d4 100644 --- a/src/filterlist.h +++ b/src/filterlist.h @@ -6,6 +6,7 @@ namespace Ui { class MainWindow; }; class CategoryFactory; +class Settings; class FilterList : public QObject { @@ -14,13 +15,17 @@ class FilterList : public QObject public: FilterList(Ui::MainWindow* ui, CategoryFactory& factory); + void restoreState(const Settings& s); + void saveState(Settings& s) const; + void setSelection(const std::vector<ModListSortProxy::Criteria>& criteria); void clearSelection(); void refresh(); signals: void criteriaChanged(std::vector<ModListSortProxy::Criteria> criteria); - void optionsChanged(ModListSortProxy::FilterMode mode, bool separators); + void optionsChanged( + ModListSortProxy::FilterMode mode, ModListSortProxy::SeparatorsMode sep); private: class CriteriaItem; |
