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