Commit 29193607 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

load options too

parent 2ee9edc1
Pipeline #64198 passed with stage
in 40 minutes and 28 seconds
...@@ -34,6 +34,11 @@ bool Filter::containString(const QString &searchInString) const ...@@ -34,6 +34,11 @@ bool Filter::containString(const QString &searchInString) const
return found; return found;
} }
void Filter::setOptions(const QuickSearchLine::SearchOptions &newOptions)
{
mOptions = newOptions;
}
const QString &Filter::filterName() const const QString &Filter::filterName() const
{ {
return mFilterName; return mFilterName;
...@@ -169,6 +174,7 @@ Filter *Filter::load(const KSharedConfig::Ptr &config, int filternumber) ...@@ -169,6 +174,7 @@ Filter *Filter::load(const KSharedConfig::Ptr &config, int filternumber)
filter->setTagId(newGroup.readEntry("tagId")); filter->setTagId(newGroup.readEntry("tagId"));
filter->setIdentifier(newGroup.readEntry("identifier")); filter->setIdentifier(newGroup.readEntry("identifier"));
filter->setFilterName(newGroup.readEntry("name")); filter->setFilterName(newGroup.readEntry("name"));
filter->setOptions(static_cast<QuickSearchLine::SearchOptions>(newGroup.readEntry("searchOptions").toInt()));
return filter; return filter;
} }
return nullptr; return nullptr;
......
...@@ -98,6 +98,8 @@ public: ...@@ -98,6 +98,8 @@ public:
Q_REQUIRED_RESULT const QString &filterName() const; Q_REQUIRED_RESULT const QString &filterName() const;
void setFilterName(const QString &newFilterName); void setFilterName(const QString &newFilterName);
void setOptions(const QuickSearchLine::SearchOptions &newOptions);
Q_SIGNALS: Q_SIGNALS:
void finished(); void finished();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment