[AppletInterface] Emit change signals for configurationRequired and -Reason

Differential Revision: https://phabricator.kde.org/D9066
This commit is contained in:
Kai Uwe Broulik 2017-11-30 16:51:26 +01:00
parent b6b81c67b3
commit fa3a389925

View File

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