Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/computermodel.cpp
Context not available. | |||||
20 | 20 | | |||
---|---|---|---|---|---|
21 | #include "computermodel.h" | 21 | #include "computermodel.h" | ||
22 | #include "actionlist.h" | 22 | #include "actionlist.h" | ||
23 | #include "favoritesmodel.h" | 23 | #include "simplefavoritesmodel.h" | ||
24 | 24 | | |||
25 | #include <QIcon> | 25 | #include <QIcon> | ||
26 | 26 | | |||
Context not available. | |||||
137 | ComputerModel::ComputerModel(QObject *parent) : ForwardingModel(parent) | 137 | ComputerModel::ComputerModel(QObject *parent) : ForwardingModel(parent) | ||
138 | , m_concatProxy(new KConcatenateRowsProxyModel(this)) | 138 | , m_concatProxy(new KConcatenateRowsProxyModel(this)) | ||
139 | , m_runCommandModel(new RunCommandModel(this)) | 139 | , m_runCommandModel(new RunCommandModel(this)) | ||
140 | , m_systemAppsModel(new FavoritesModel(this)) | 140 | , m_systemAppsModel(new SimpleFavoritesModel(this)) | ||
141 | , m_filteredPlacesModel(new FilteredPlacesModel(this)) | 141 | , m_filteredPlacesModel(new FilteredPlacesModel(this)) | ||
142 | , m_appNameFormat(AppEntry::NameOnly) | 142 | , m_appNameFormat(AppEntry::NameOnly) | ||
143 | , m_appletInterface(nullptr) | 143 | , m_appletInterface(nullptr) | ||
144 | { | 144 | { | ||
145 | connect(m_systemAppsModel, &FavoritesModel::favoritesChanged, this, &ComputerModel::systemApplicationsChanged); | 145 | connect(m_systemAppsModel, &SimpleFavoritesModel::favoritesChanged, this, &ComputerModel::systemApplicationsChanged); | ||
146 | m_systemAppsModel->setFavorites(QStringList() << "systemsettings.desktop"); | ||||
146 | 147 | | |||
147 | m_concatProxy->addSourceModel(m_runCommandModel); | 148 | m_concatProxy->addSourceModel(m_runCommandModel); | ||
148 | m_concatProxy->addSourceModel(m_systemAppsModel); | 149 | m_concatProxy->addSourceModel(m_systemAppsModel); | ||
Context not available. |