┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinfacetswidget.h
diff options
context:
space:
mode:
authorIsmael Asensio <[email protected]>2019-12-15 23:15:46 +0100
committerIsmael Asensio <[email protected]>2019-12-29 21:05:45 +0100
commitc331d7068574dd468101ed8ade3ce51a2a8560c0 (patch)
tree2dced72da780bfcc5154430dcaa4e93e4e6a8d00 /src/search/dolphinfacetswidget.h
parent732697d0d6fcc3a834a85865dcd88870e127711b (diff)
Clean-up DolphinFacetsWidget
Summary: Small refactor patch to clean-up some logic on setter and getter: - Search terms are previously splitted and set separately, so no need for extra splitting and `foreach` loop - Return search terms on a `QStringList` rather than join first Depends on: D26029 Test Plan: No behavior changes Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D26150
Diffstat (limited to 'src/search/dolphinfacetswidget.h')
-rw-r--r--src/search/dolphinfacetswidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h
index 84029c20f..2e91bcc96 100644
--- a/src/search/dolphinfacetswidget.h
+++ b/src/search/dolphinfacetswidget.h
@@ -52,7 +52,7 @@ public:
explicit DolphinFacetsWidget(QWidget* parent = nullptr);
~DolphinFacetsWidget() override;
- QString searchTerms() const;
+ QStringList searchTerms() const;
QString facetType() const;
bool isSearchTerm(const QString& term) const;