diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-14 13:10:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-01 10:21:44 -0800 |
commit | 41aae1aebe1aea4db58d61a171f7ecd76b6282d7 (patch) | |
tree | 7997fef36ae33f3627f6e33d609509396effc166 /desktop-widgets/filterwidget2.cpp | |
parent | 34549c4cc308ecd740c0913ff3f6e2461caa7404 (diff) | |
download | subsurface-41aae1aebe1aea4db58d61a171f7ecd76b6282d7.tar.gz |
filter: move StringMode out of FilterData
The FilterData struct has the enum StringMode, which describes how
strings are searched (substring, startswith, exact). To make it
more generally accessible, remove it from the class. Since it is
an "enum class", the values don't pollute the global namespace anyway.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/filterwidget2.cpp')
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index 2df96062f..534cb4594 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -226,12 +226,12 @@ void FilterWidget2::updateFilter() filterData.suitMode = (FilterData::Mode)ui.suitMode->currentIndex(); filterData.dnotesMode = (FilterData::Mode)ui.dnotesMode->currentIndex(); filterData.equipmentMode = (FilterData::Mode)ui.equipmentMode->currentIndex(); - filterData.tagsStringMode = (FilterData::StringMode)ui.tagsStringMode->currentIndex(); - filterData.peopleStringMode = (FilterData::StringMode)ui.peopleStringMode->currentIndex(); - filterData.locationStringMode = (FilterData::StringMode)ui.locationStringMode->currentIndex(); - filterData.suitStringMode = (FilterData::StringMode)ui.suitStringMode->currentIndex(); - filterData.dnotesStringMode = (FilterData::StringMode)ui.dnotesStringMode->currentIndex(); - filterData.equipmentStringMode = (FilterData::StringMode)ui.equipmentStringMode->currentIndex(); + filterData.tagsStringMode = (StringFilterMode)ui.tagsStringMode->currentIndex(); + filterData.peopleStringMode = (StringFilterMode)ui.peopleStringMode->currentIndex(); + filterData.locationStringMode = (StringFilterMode)ui.locationStringMode->currentIndex(); + filterData.suitStringMode = (StringFilterMode)ui.suitStringMode->currentIndex(); + filterData.dnotesStringMode = (StringFilterMode)ui.dnotesStringMode->currentIndex(); + filterData.equipmentStringMode = (StringFilterMode)ui.equipmentStringMode->currentIndex(); filterData.logged = ui.logged->isChecked(); filterData.planned = ui.planned->isChecked(); |