┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemmodel.cpp
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2015-02-04 09:39:40 +0100
committerEmmanuel Pescosta <[email protected]>2015-02-04 09:39:40 +0100
commitb15ee4cf70a23e04a74b368dce7ab2a20afe944d (patch)
tree7db65521ed44f44606f0ca6bb0309ae92698cb40 /src/panels/places/placesitemmodel.cpp
parent900b523d2b6d9cbd92e744ff7cdf653be8ec0365 (diff)
Port away from KGlobal::mainComponent()
Diffstat (limited to 'src/panels/places/placesitemmodel.cpp')
-rw-r--r--src/panels/places/placesitemmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp
index cfe6d2e46..0f5854656 100644
--- a/src/panels/places/placesitemmodel.cpp
+++ b/src/panels/places/placesitemmodel.cpp
@@ -35,7 +35,7 @@
#include <KComponentData>
#include <QStandardPaths>
#include <KUser>
-#include <KGlobal>
+#include <KAboutData>
#include "placesitem.h"
#include <QAction>
#include <QDate>
@@ -833,8 +833,8 @@ bool PlacesItemModel::acceptBookmark(const KBookmark& bookmark,
const bool deviceAvailable = availableDevices.contains(udi);
const bool allowedHere = (appName.isEmpty()
- || appName == KGlobal::mainComponent().componentName()
- || appName == KGlobal::mainComponent().componentName() + AppNamePrefix)
+ || appName == KAboutData::applicationData().componentName()
+ || appName == KAboutData::applicationData().componentName() + AppNamePrefix)
&& (m_fileIndexingEnabled || (url.scheme() != QLatin1String("timeline") &&
url.scheme() != QLatin1String("search")));
@@ -853,7 +853,7 @@ PlacesItem* PlacesItemModel::createSystemPlacesItem(const SystemBookmarkData& da
// As long as the KFilePlacesView from kdelibs is available, the system-bookmarks
// for "Recently Saved" and "Search For" should be a setting available only
// in the Places Panel (see description of AppNamePrefix for more details).
- const QString appName = KGlobal::mainComponent().componentName() + AppNamePrefix;
+ const QString appName = KAboutData::applicationData().componentName() + AppNamePrefix;
bookmark.setMetaDataItem("OnlyInApp", appName);
}