[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-baseapps/KDE/4.9] dolphin/src/panels/places: Dolphin Places: Only show file results in Nepomuk
From: Vishesh Handa <me () vhanda ! in>
Date: 2012-09-27 21:11:19
Message-ID: 20120927211119.91FA7A6042 () git ! kde ! org
[Download RAW message or body]
Git commit 41007b8873b98dac95cd070bfed3c50aea4db984 by Vishesh Handa.
Committed on 30/08/2012 at 13:01.
Pushed by vhanda into branch 'KDE/4.9'.
Dolphin Places: Only show file results in Nepomuk Queries
Dolphin is a file manager, and shouldn't be concerned with non-file
resources like notes, contacts and other stuff.
Use FileQuery instead of Query.
This also results in a faster queries. With File Queries Nepomuk can
perform some internal optimizations.
BUG: 306029
REVIEW: 106274
Cherry-picked from 6892d39d292d4f64d808e64c58ef20fa081f0259
M +2 -2 dolphin/src/panels/places/placesitemmodel.cpp
http://commits.kde.org/kde-baseapps/41007b8873b98dac95cd070bfed3c50aea4db984
diff --git a/dolphin/src/panels/places/placesitemmodel.cpp b/dolphin/src/pa=
nels/places/placesitemmodel.cpp
index 706092b..4770c6b 100644
--- a/dolphin/src/panels/places/placesitemmodel.cpp
+++ b/dolphin/src/panels/places/placesitemmodel.cpp
@@ -54,7 +54,7 @@
#include <Nepomuk/ResourceManager>
#include <Nepomuk/Query/ComparisonTerm>
#include <Nepomuk/Query/LiteralTerm>
- #include <Nepomuk/Query/Query>
+ #include <Nepomuk/Query/FileQuery>
#include <Nepomuk/Query/ResourceTypeTerm>
#include <Nepomuk/Vocabulary/NFO>
#include <Nepomuk/Vocabulary/NIE>
@@ -1172,7 +1172,7 @@ KUrl PlacesItemModel::createSearchUrl(const KUrl& url)
#ifdef HAVE_NEPOMUK
KUrl PlacesItemModel::searchUrlForTerm(const Nepomuk::Query::Term& term)
{
- const Nepomuk::Query::Query query(term);
+ const Nepomuk::Query::FileQuery query(term);
return query.toSearchUrl();
}
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic