From kde-commits Thu Aug 30 12:19:10 2012 From: Vishesh Handa Date: Thu, 30 Aug 2012 12:19:10 +0000 To: kde-commits Subject: [kde-baseapps/KDE/4.9] dolphin/src/panels/places: Dolphin Places: Only show file results in Nepomuk Message-Id: <20120830121910.CFC05A6094 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=134632916023074 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 #include #include - #include + #include #include #include #include @@ -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