From c331d7068574dd468101ed8ade3ce51a2a8560c0 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Sun, 15 Dec 2019 23:15:46 +0100 Subject: 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 --- src/search/dolphinfacetswidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search/dolphinfacetswidget.h') 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; -- cgit v1.3