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
return found;
}
void Filter::setOptions(const QuickSearchLine::SearchOptions &newOptions)
{
mOptions = newOptions;
}
const QString &Filter::filterName() const
{
return mFilterName;
......@@ -169,6 +174,7 @@ Filter *Filter::load(const KSharedConfig::Ptr &config, int filternumber)
filter->setTagId(newGroup.readEntry("tagId"));
filter->setIdentifier(newGroup.readEntry("identifier"));
filter->setFilterName(newGroup.readEntry("name"));
filter->setOptions(static_cast<QuickSearchLine::SearchOptions>(newGroup.readEntry("searchOptions").toInt()));
return filter;
}
return nullptr;
......
......@@ -98,6 +98,8 @@ public:
Q_REQUIRED_RESULT const QString &filterName() const;
void setFilterName(const QString &newFilterName);
void setOptions(const QuickSearchLine::SearchOptions &newOptions);
Q_SIGNALS:
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