[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-08-30 12:19:10
Message-ID: 20120830121910.CFC05A6094 () git ! kde ! org
[Download RAW message or body]
Git commit efc8a382498f7cf1f3877714931be74dd2aa8b39 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/efc8a382498f7cf1f3877714931be74dd2aa8b39
diff --git a/dolphin/src/panels/places/placesitemmodel.cpp b/dolphin/src/pa=
nels/places/placesitemmodel.cpp
index 4979013..5eb1c35 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>
@@ -1162,7 +1162,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