Initialize the model

This commit is contained in:
Sebastian Kügler 2013-03-21 04:02:44 +01:00
parent 6d511c0f6a
commit bc2b5bd9fc
2 changed files with 6 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void PlasmaAppletItemModel::populateModel(const QStringList &whatChanged)
continue;
}
//kDebug() << info.pluginName() << " is the name of the plugin at" << info.entryPath();
qDebug() << info.pluginName() << " is the name of the plugin at" << info.entryPath();
//kDebug() << info.name() << info.property("X-Plasma-Thumbnail");
PlasmaAppletItem::FilterFlags flags(PlasmaAppletItem::NoFilter);

View File

@ -67,6 +67,7 @@ using namespace Plasma;
WidgetAction::WidgetAction(QObject *parent)
: QAction(parent)
{
qDebug() << "There we go.";
}
WidgetAction::WidgetAction(const QIcon &icon, const QString &text, QObject *parent)
@ -172,6 +173,10 @@ void WidgetExplorerPrivate::init(Plasma::Location loc)
initRunningApplets();
filterItemModel.setSortCaseSensitivity(Qt::CaseInsensitive);
filterItemModel.setDynamicSortFilter(true);
filterItemModel.setSourceModel(&itemModel);
filterItemModel.sort(0);
// Plasma::PackageStructure::Ptr structure = Plasma::PackageStructure::load("Plasma/Generic");
// package = new Plasma::Package(QString(), "org.kde.desktop.widgetexplorer", structure);
//