convert a bunch of connects to new syntax
avoid future risks of connects silently failing
This commit is contained in:
parent
0ed6b09e85
commit
980e482f4d
@ -63,15 +63,20 @@ AppletInterface::AppletInterface(DeclarativeAppletScript *script, QQuickItem *pa
|
|||||||
qmlRegisterType<AppletInterface>();
|
qmlRegisterType<AppletInterface>();
|
||||||
qmlRegisterType<QAction>();
|
qmlRegisterType<QAction>();
|
||||||
|
|
||||||
connect(this, SIGNAL(configNeedsSaving()), applet(), SIGNAL(configNeedsSaving()));
|
connect(this, &AppletInterface::configNeedsSaving,
|
||||||
connect(applet(), SIGNAL(immutabilityChanged(Plasma::Types::ImmutabilityType)), this, SIGNAL(immutableChanged()));
|
applet(), &Plasma::Applet::configNeedsSaving);
|
||||||
connect(applet(), SIGNAL(statusChanged(Plasma::Types::ItemStatus)), this, SIGNAL(statusChanged()));
|
connect(applet(), &Plasma::Applet::immutabilityChanged,
|
||||||
connect(m_appletScriptEngine, SIGNAL(formFactorChanged()),
|
this, &AppletInterface::immutableChanged);
|
||||||
this, SIGNAL(formFactorChanged()));
|
|
||||||
connect(m_appletScriptEngine, SIGNAL(locationChanged()),
|
connect(applet(), &Plasma::Applet::statusChanged,
|
||||||
this, SIGNAL(locationChanged()));
|
this, &AppletInterface::statusChanged);
|
||||||
connect(m_appletScriptEngine, SIGNAL(contextChanged()),
|
|
||||||
this, SIGNAL(contextChanged()));
|
connect(m_appletScriptEngine, &DeclarativeAppletScript::formFactorChanged,
|
||||||
|
this, &AppletInterface::formFactorChanged);
|
||||||
|
connect(m_appletScriptEngine, &DeclarativeAppletScript::locationChanged,
|
||||||
|
this, &AppletInterface::locationChanged);
|
||||||
|
connect(m_appletScriptEngine, &DeclarativeAppletScript::contextChanged,
|
||||||
|
this, &AppletInterface::contextChanged);
|
||||||
|
|
||||||
m_qmlObject = new QmlObject(this);
|
m_qmlObject = new QmlObject(this);
|
||||||
m_qmlObject->setInitializationDelayed(true);
|
m_qmlObject->setInitializationDelayed(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user