From 9bc347006d8621e2516a7ae633f6f58c58bacfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 26 Mar 2013 02:06:40 +0100 Subject: [PATCH] Connect closeClicked signal --- src/shell/desktopcorona.cpp | 1 + src/shell/widgetexplorer/widgetexplorer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/shell/desktopcorona.cpp b/src/shell/desktopcorona.cpp index e46840343..6dfe0018a 100644 --- a/src/shell/desktopcorona.cpp +++ b/src/shell/desktopcorona.cpp @@ -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; diff --git a/src/shell/widgetexplorer/widgetexplorer.cpp b/src/shell/widgetexplorer/widgetexplorer.cpp index 26502adc2..9a5e9c81f 100644 --- a/src/shell/widgetexplorer/widgetexplorer.cpp +++ b/src/shell/widgetexplorer/widgetexplorer.cpp @@ -114,6 +114,7 @@ void WidgetExplorerPrivate::initFilters() QMap categories; QSet 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)) {