From fa3a3899258b786fd1935e4cc6f0da6b092891f0 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 30 Nov 2017 16:51:26 +0100 Subject: [PATCH] [AppletInterface] Emit change signals for configurationRequired and -Reason Differential Revision: https://phabricator.kde.org/D9066 --- src/scriptengines/qml/plasmoid/appletinterface.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/scriptengines/qml/plasmoid/appletinterface.cpp b/src/scriptengines/qml/plasmoid/appletinterface.cpp index 30a1e5f58..ceb98a622 100644 --- a/src/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/src/scriptengines/qml/plasmoid/appletinterface.cpp @@ -93,6 +93,14 @@ AppletInterface::AppletInterface(DeclarativeAppletScript *script, const QVariant connect(applet(), &Plasma::Applet::busyChanged, this, &AppletInterface::busyChanged); + connect(applet(), &Plasma::Applet::configurationRequiredChanged, this, + [this](bool configurationRequired, const QString &reason) { + Q_UNUSED(configurationRequired); + Q_UNUSED(reason); + emit configurationRequiredChanged(); + emit configurationRequiredReasonChanged(); + }); + connect(applet(), &Plasma::Applet::activated, this, &AppletInterface::activated);