┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinquery.cpp
diff options
context:
space:
mode:
authorIsmael Asensio <[email protected]>2019-12-15 17:18:18 +0100
committerIsmael Asensio <[email protected]>2019-12-15 17:28:38 +0100
commit8e80c1d6dc1ede9b0a44ea1bd949487280c17064 (patch)
tree5d1008fdb62741e49a1b1daeda0d078ffa72bf92 /src/search/dolphinquery.cpp
parentf6229562088487a7694c644be14d77f21d21c762 (diff)
[dolphin/search] Search by (multiple) tags
Summary: Adds a tag selector in the extended filters of the search box. Selected tag or tags are added to the search query along with the other filters (type, date, rating). FEATURE: 412564 CCBUG: 356062 Test Plan: - Menu shows the user tags - Picking any tag/s filters the search to that specific tag/s {F7727909} Reviewers: elvisangelaccio, ngraham, #dolphin, #vdg Reviewed By: elvisangelaccio, ngraham, #dolphin, #vdg Subscribers: kfm-devel Tags: #dolphin Maniphest Tasks: T9094 Differential Revision: https://phabricator.kde.org/D25130
Diffstat (limited to 'src/search/dolphinquery.cpp')
-rw-r--r--src/search/dolphinquery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search/dolphinquery.cpp b/src/search/dolphinquery.cpp
index 8f8cb09ec..92694c093 100644
--- a/src/search/dolphinquery.cpp
+++ b/src/search/dolphinquery.cpp
@@ -32,7 +32,8 @@ namespace {
{
static const QLatin1String searchTokens[] {
QLatin1String("modified>="),
- QLatin1String("rating>=")
+ QLatin1String("rating>="),
+ QLatin1String("tag:"), QLatin1String("tag=")
};
for (const auto &searchToken : searchTokens) {