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. | |||||
73 | 73 | | |||
74 | void InvalidAppsFilterProxy::connectNewFavoritesModel() | 74 | void InvalidAppsFilterProxy::connectNewFavoritesModel() | ||
75 | { | 75 | { | ||
76 | FavoritesModel* favoritesModel = static_cast<FavoritesModel *>(m_parentModel->favoritesModel()); | 76 | KAStatsFavoritesModel* favoritesModel = static_cast<KAStatsFavoritesModel *>(m_parentModel->favoritesModel()); | ||
77 | connect(favoritesModel, &FavoritesModel::favoritesChanged, this, &QSortFilterProxyModel::invalidate); | 77 | connect(favoritesModel, &KAStatsFavoritesModel::favoritesChanged, this, &QSortFilterProxyModel::invalidate); | ||
78 | 78 | | |||
79 | invalidate(); | 79 | invalidate(); | ||
80 | } | 80 | } | ||
Context not available. | |||||
88 | if (resource.startsWith(QLatin1String("applications:"))) { | 88 | if (resource.startsWith(QLatin1String("applications:"))) { | ||
89 | KService::Ptr service = KService::serviceByStorageId(resource.section(':', 1)); | 89 | KService::Ptr service = KService::serviceByStorageId(resource.section(':', 1)); | ||
90 | 90 | | |||
91 | FavoritesModel* favoritesModel = m_parentModel ? static_cast<FavoritesModel *>(m_parentModel->favoritesModel()) : nullptr; | 91 | KAStatsFavoritesModel* favoritesModel = m_parentModel ? static_cast<KAStatsFavoritesModel *>(m_parentModel->favoritesModel()) : nullptr; | ||
92 | 92 | | |||
93 | return (service && (!favoritesModel || !favoritesModel->isFavorite(service->storageId()))); | 93 | return (service && (!favoritesModel || !favoritesModel->isFavorite(service->storageId()))); | ||
94 | } | 94 | } | ||
Context not available. |