From 36c25f085dcb5d23c997fe60f2939ff48790b197 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 26 Apr 2013 13:42:23 +0200 Subject: [PATCH] make the "plasmoid" property work agaon --- src/shell/configview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/configview.cpp b/src/shell/configview.cpp index 50f9dbd61..2040fc5bb 100644 --- a/src/shell/configview.cpp +++ b/src/shell/configview.cpp @@ -260,9 +260,9 @@ void ConfigModel::categories_clear(QQmlListProperty *prop) //////////////////////////////ConfigView -ConfigView::ConfigView(Plasma::Applet *interface, QWindow *parent) +ConfigView::ConfigView(Plasma::Applet *applet, QWindow *parent) : QQuickView(parent), - m_applet(interface) + m_applet(applet) { qmlRegisterType("org.kde.plasma.configuration", 2, 0, "ConfigModel"); qmlRegisterType("org.kde.plasma.configuration", 2, 0, "ConfigCategory"); @@ -292,7 +292,7 @@ ConfigView::ConfigView(Plasma::Applet *interface, QWindow *parent) Plasma::Containment *cont = qobject_cast(m_applet); - engine()->rootContext()->setContextProperty("plasmoid", interface); + engine()->rootContext()->setContextProperty("plasmoid", applet->property("graphicObject").value()); engine()->rootContext()->setContextProperty("configDialog", this); }