Connect closeClicked signal

This commit is contained in:
Sebastian Kügler 2013-03-26 02:06:40 +01:00
parent 243e8d23e3
commit 9bc347006d
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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)) {