Connect closeClicked signal
This commit is contained in:
parent
243e8d23e3
commit
9bc347006d
@ -282,6 +282,7 @@ void DesktopCorona::showWidgetExplorer()
|
||||
m_widgetExplorer = new WidgetExplorer(m_widgetExplorerView);
|
||||
m_widgetExplorer->populateWidgetList();
|
||||
m_widgetExplorerView->rootContext()->setContextProperty("widgetExplorer", m_widgetExplorer);
|
||||
connect(m_widgetExplorer, &WidgetExplorer::closeClicked, m_widgetExplorerView, &QQuickView::close);
|
||||
|
||||
QString expqml = package().filePath("widgetexplorer");
|
||||
qDebug() << "Script to load for WidgetExplorer: " << expqml;
|
||||
|
@ -114,6 +114,7 @@ void WidgetExplorerPrivate::initFilters()
|
||||
QMap<QString, catPair > categories;
|
||||
QSet<QString> existingCategories = itemModel.categories();
|
||||
//foreach (const QString &category, Plasma::Applet::listCategories(application)) {
|
||||
qWarning() << "TODO: port listCategories()";
|
||||
foreach (const QString &category, QStringList("FIXME")) {
|
||||
const QString lowerCaseCat = category.toLower();
|
||||
if (existingCategories.contains(lowerCaseCat)) {
|
||||
|
Loading…
Reference in New Issue
Block a user