|
|
|
|
@ -29,6 +29,7 @@ |
|
|
|
|
#include "config-workspace.h" |
|
|
|
|
#include <KPluginTrader> |
|
|
|
|
#include <KPackage/PackageLoader> |
|
|
|
|
#include <KDeclarative/KDeclarative> |
|
|
|
|
|
|
|
|
|
PlasmaAppletItem::PlasmaAppletItem(PlasmaAppletItemModel *model, |
|
|
|
|
const KPluginInfo& info, |
|
|
|
|
@ -299,6 +300,18 @@ void PlasmaAppletItemModel::populateModel(const QStringList &whatChanged) |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool inFormFactor = true; |
|
|
|
|
|
|
|
|
|
foreach (const QString &formFactor, KDeclarative::KDeclarative::runtimePlatform()) { |
|
|
|
|
if (!info.formFactors().isEmpty() && |
|
|
|
|
!info.formFactors().contains(formFactor)) { |
|
|
|
|
inFormFactor = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!inFormFactor) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//qDebug() << info.pluginName() << " is the name of the plugin at" << info.entryPath();
|
|
|
|
|
//qDebug() << info.name() << info.property("X-Plasma-Thumbnail");
|
|
|
|
|
|
|
|
|
|
|