Commit a2709e9a authored by Laurent Montel's avatar Laurent Montel 😁

Don't emit signal all the time

parent ecd8098e
...@@ -170,7 +170,6 @@ void SearchLineStatus::clearFilterButtonClicked() ...@@ -170,7 +170,6 @@ void SearchLineStatus::clearFilterButtonClicked()
clearFilterAction(); clearFilterAction();
clearFilterByAction(); clearFilterByAction();
updateFilters(); updateFilters();
slotSearchOptionChanged();
} }
void SearchLineStatus::createMenuSearch() void SearchLineStatus::createMenuSearch()
...@@ -265,7 +264,6 @@ void SearchLineStatus::createFilterByAction() ...@@ -265,7 +264,6 @@ void SearchLineStatus::createFilterByAction()
void SearchLineStatus::clearFilterByAction() void SearchLineStatus::clearFilterByAction()
{ {
//qDebug() << " void SearchLineStatus::clearFilterByAction()";
mSearchEveryWhereAction->setChecked(true); mSearchEveryWhereAction->setChecked(true);
} }
...@@ -316,15 +314,10 @@ QuickSearchLine::SearchOptions SearchLineStatus::searchOptions() const ...@@ -316,15 +314,10 @@ QuickSearchLine::SearchOptions SearchLineStatus::searchOptions() const
return searchOptions; return searchOptions;
} }
void SearchLineStatus::slotSearchOptionChanged()
{
Q_EMIT searchOptionChanged();
}
void SearchLineStatus::slotFilterActionClicked(QAction *act) void SearchLineStatus::slotFilterActionClicked(QAction *act)
{ {
Q_UNUSED(act); Q_UNUSED(act);
slotSearchOptionChanged(); Q_EMIT searchOptionChanged();
} }
void SearchLineStatus::addCompletionItem(const QString &str) void SearchLineStatus::addCompletionItem(const QString &str)
......
...@@ -57,7 +57,6 @@ protected: ...@@ -57,7 +57,6 @@ protected:
private Q_SLOTS: private Q_SLOTS:
void slotToggledLockAction(); void slotToggledLockAction();
void showMenu(); void showMenu();
void slotSearchOptionChanged();
void slotFilterActionClicked(QAction *act); void slotFilterActionClicked(QAction *act);
private: private:
void clearFilterAction(); void clearFilterAction();
......
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