┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
authorIsmael Asensio <[email protected]>2019-12-21 19:41:44 +0100
committerIsmael Asensio <[email protected]>2019-12-26 19:30:08 +0100
commit732697d0d6fcc3a834a85865dcd88870e127711b (patch)
tree7562c951018129e3ee4fa4cd99de34948d6c774f /src/search/dolphinsearchbox.cpp
parent4dc362db1ec564b9fd2588f5b642406d6a712229 (diff)
Rename methods on DolphinFacetsWidget
Summary: Small refactor patch to rename method names, from `ratingTerm` to `searchTerm`, since its scope has grown bigger. Test Plan: No behavior changes Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D26029
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index 302081d7d..c216e1714 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -478,7 +478,7 @@ QUrl DolphinSearchBox::balooUrlForSearching() const
query.addType(m_facetsWidget->facetType());
QStringList queryStrings;
- QString ratingQuery = m_facetsWidget->ratingTerm();
+ QString ratingQuery = m_facetsWidget->searchTerms();
if (!ratingQuery.isEmpty()) {
queryStrings << ratingQuery;
}
@@ -523,11 +523,11 @@ void DolphinSearchBox::updateFromQuery(const DolphinQuery& query)
m_fileNameButton->setChecked(true);
}
- m_facetsWidget->resetOptions();
+ m_facetsWidget->resetSearchTerms();
m_facetsWidget->setFacetType(query.type());
const QStringList searchTerms = query.searchTerms();
for (const QString& searchTerm : searchTerms) {
- m_facetsWidget->setRatingTerm(searchTerm);
+ m_facetsWidget->setSearchTerm(searchTerm);
}
m_startSearchTimer->stop();