From 0603e18cd4e36b988196a99810f2e3e803fe3125 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 16 Dec 2021 19:29:22 +0100 Subject: Port back to KFilePlacesView This removes the custom-view engine version of the places panel and replaces it with the upstream `KFilePlacesView` from KIO. --- src/search/dolphinsearchbox.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/search/dolphinsearchbox.cpp') diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 9143ddcb7..860d9f6cd 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -9,8 +9,8 @@ #include "dolphin_searchsettings.h" #include "dolphinfacetswidget.h" +#include "dolphinplacesmodelsingleton.h" #include "dolphinquery.h" -#include "panels/places/placesitemmodel.h" #include #include @@ -288,11 +288,8 @@ void DolphinSearchBox::slotSearchSaved() { const QUrl searchURL = urlForSearching(); if (searchURL.isValid()) { - PlacesItemModel model; const QString label = i18n("Search for %1 in %2", text(), searchPath().fileName()); - model.createPlacesItem(label, - searchURL, - QStringLiteral("folder-saved-search-symbolic")); + DolphinPlacesModelSingleton::instance().placesModel()->addPlace(label, searchURL, QStringLiteral("folder-saved-search-symbolic")); } } -- cgit v1.3