Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/recentusagemodel.cpp
Context not available. | |||||
21 | #include "actionlist.h" | 21 | #include "actionlist.h" | ||
---|---|---|---|---|---|
22 | #include "appsmodel.h" | 22 | #include "appsmodel.h" | ||
23 | #include "appentry.h" | 23 | #include "appentry.h" | ||
24 | #include "favoritesmodel.h" | 24 | #include "kastatsfavoritesmodel.h" | ||
25 | 25 | | |||
26 | #include <config-X11.h> | 26 | #include <config-X11.h> | ||
27 | 27 | | |||
Context not available. | |||||
74 | 74 | | |||
75 | void InvalidAppsFilterProxy::connectNewFavoritesModel() | 75 | void InvalidAppsFilterProxy::connectNewFavoritesModel() | ||
76 | { | 76 | { | ||
77 | FavoritesModel* favoritesModel = static_cast<FavoritesModel *>(m_parentModel->favoritesModel()); | 77 | KAStatsFavoritesModel* favoritesModel = static_cast<KAStatsFavoritesModel *>(m_parentModel->favoritesModel()); | ||
78 | connect(favoritesModel, &FavoritesModel::favoritesChanged, this, &QSortFilterProxyModel::invalidate); | 78 | connect(favoritesModel, &KAStatsFavoritesModel::favoritesChanged, this, &QSortFilterProxyModel::invalidate); | ||
79 | 79 | | |||
80 | invalidate(); | 80 | invalidate(); | ||
81 | } | 81 | } | ||
Context not available. | |||||
89 | if (resource.startsWith(QLatin1String("applications:"))) { | 89 | if (resource.startsWith(QLatin1String("applications:"))) { | ||
90 | KService::Ptr service = KService::serviceByStorageId(resource.section(':', 1)); | 90 | KService::Ptr service = KService::serviceByStorageId(resource.section(':', 1)); | ||
91 | 91 | | |||
92 | FavoritesModel* favoritesModel = m_parentModel ? static_cast<FavoritesModel *>(m_parentModel->favoritesModel()) : nullptr; | 92 | KAStatsFavoritesModel* favoritesModel = m_parentModel ? static_cast<KAStatsFavoritesModel *>(m_parentModel->favoritesModel()) : nullptr; | ||
93 | 93 | | |||
94 | return (service && (!favoritesModel || !favoritesModel->isFavorite(service->storageId()))); | 94 | return (service && (!favoritesModel || !favoritesModel->isFavorite(service->storageId()))); | ||
95 | } | 95 | } | ||
Context not available. |