┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinfacetswidget.h
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2014-03-28 18:48:48 +0100
committerEmmanuel Pescosta <[email protected]>2014-03-28 18:48:48 +0100
commit5d63b9a111e6ae76ff7b9f5ba9cd26be873aa115 (patch)
tree2ea10c0569e29c258330d6fe19fbe24dd5d88b7f /src/search/dolphinfacetswidget.h
parent5c2f52e62a7cfef961c2f67585c84c04b4193370 (diff)
When you open a new tab while the search mode is enabled, the
newly opened tab also starts the same search (Because new tab is opened with the current view url), but the search box is in read-only mode. So you cannot close the search bar nor edit the search text. This patch fixes this by parsing the search url. The value of the "search" parameter is used as search text and the value of the "url" parameter is used for the search path ("root" folder for the search when "Search from here" mode is enabled). In case of Baloo search urls, we use Baloo::Query::fromSearchUrl. Removed everything related to read only mode in DolphinSearchBox, not needed anymore. REVIEW: 111968 BUG: 311950 FIXED-IN: 4.13.0
Diffstat (limited to 'src/search/dolphinfacetswidget.h')
-rw-r--r--src/search/dolphinfacetswidget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h
index 1fd1683da..8f6d8eb6f 100644
--- a/src/search/dolphinfacetswidget.h
+++ b/src/search/dolphinfacetswidget.h
@@ -58,12 +58,20 @@ public:
#ifdef HAVE_BALOO
Baloo::Term ratingTerm() const;
QString facetType() const;
+
+ bool isRatingTerm(const Baloo::Term& term) const;
+ void setRatingTerm(const Baloo::Term& term);
#endif
+ void setFacetType(const QString& type);
+
signals:
void facetChanged();
private:
+ void setRating(const int stars);
+ void setTimespan(const QDate& date);
+
/**
* @return New radiobutton which is connected to the
* slotFacedChanged() slot whenever it has