Fix build.

This commit is contained in:
Eike Hein 2013-09-02 00:11:37 +02:00
parent e8a4332034
commit 752faa454d
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ void PlasmaAppletItemModel::populateModel(const QStringList &whatChanged)
// << Plasma::Applet::listAppletInfo(QString(), m_application).count();
KService::List services = KServiceTypeTrader::self()->query("Plasma/Applet", QString());
foreach (const KSharedPtr<KService> service, services) {
foreach (const QExplicitlySharedDataPointer<KService> service, services) {
KPluginInfo info(service);
//qDebug() << info.pluginName() << "NoDisplay" << info.property("NoDisplay").toBool();
if (info.property("NoDisplay").toBool() || info.category() == i18n("Containments")) {

View File

@ -117,7 +117,7 @@ void WidgetExplorerPrivate::initFilters()
QStringList cats;
KService::List services = KServiceTypeTrader::self()->query("Plasma/Applet", QString());
foreach (const KSharedPtr<KService> service, services) {
foreach (const QExplicitlySharedDataPointer<KService> service, services) {
KPluginInfo info(service);
if (info.property("NoDisplay").toBool() || info.category() == i18n("Containments") ||
info.category().isEmpty()) {