Commit 0b8dcfc2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to assign options

parent 70b9fc38
Pipeline #64730 passed with stage
in 40 minutes and 21 seconds
......@@ -167,6 +167,7 @@ void Widget::slotActivateFilter(Filter *f)
{
setFilter(f);
d->quickSearchLine->searchEdit()->setText(f->searchString());
d->quickSearchLine->setSearchOptions(f->currentOptions());
}
void Widget::slotSaveFilter(const QString &filterName)
......
......@@ -91,6 +91,11 @@ void QuickSearchLine::slotClearButtonClicked()
Q_EMIT clearButtonClicked();
}
void QuickSearchLine::setSearchOptions(QuickSearchLine::SearchOptions opts)
{
mSearchEdit->setSearchOptions(opts);
}
QuickSearchLine::SearchOptions QuickSearchLine::searchOptions() const
{
return mSearchEdit->searchOptions();
......
......@@ -59,6 +59,7 @@ public:
void changeQuicksearchVisibility(bool show);
void addCompletionItem(const QString &str);
void setSearchOptions(QuickSearchLine::SearchOptions opts);
Q_SIGNALS:
void clearButtonClicked();
void searchEditTextEdited(const QString &);
......
......@@ -361,6 +361,10 @@ QuickSearchLine::SearchOptions SearchLineStatus::searchOptions() const
return searchOptions;
}
void SearchLineStatus::setSearchOptions(QuickSearchLine::SearchOptions opts)
{
}
void SearchLineStatus::slotFilterActionClicked(QAction *act)
{
Q_UNUSED(act)
......
......@@ -32,6 +32,7 @@ public:
void setContainsOutboundMessages(bool containsOutboundMessages);
Q_REQUIRED_RESULT bool containsOutboundMessages() const;
Q_REQUIRED_RESULT QuickSearchLine::SearchOptions searchOptions() const;
void setSearchOptions(QuickSearchLine::SearchOptions opts);
void addCompletionItem(const QString &str);
void slotClearHistory();
void clearFilterButtonClicked();
......
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