Initialize the model
This commit is contained in:
parent
6d511c0f6a
commit
bc2b5bd9fc
@ -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);
|
||||
|
@ -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);
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user