convert a bunch of connects to new syntax

avoid future risks of connects silently failing
This commit is contained in:
Marco Martin 2013-08-08 13:50:03 +02:00
parent 0ed6b09e85
commit 980e482f4d

View File

@ -63,15 +63,20 @@ AppletInterface::AppletInterface(DeclarativeAppletScript *script, QQuickItem *pa
qmlRegisterType<AppletInterface>();
qmlRegisterType<QAction>();
connect(this, SIGNAL(configNeedsSaving()), applet(), SIGNAL(configNeedsSaving()));
connect(applet(), SIGNAL(immutabilityChanged(Plasma::Types::ImmutabilityType)), this, SIGNAL(immutableChanged()));
connect(applet(), SIGNAL(statusChanged(Plasma::Types::ItemStatus)), this, SIGNAL(statusChanged()));
connect(m_appletScriptEngine, SIGNAL(formFactorChanged()),
this, SIGNAL(formFactorChanged()));
connect(m_appletScriptEngine, SIGNAL(locationChanged()),
this, SIGNAL(locationChanged()));
connect(m_appletScriptEngine, SIGNAL(contextChanged()),
this, SIGNAL(contextChanged()));
connect(this, &AppletInterface::configNeedsSaving,
applet(), &Plasma::Applet::configNeedsSaving);
connect(applet(), &Plasma::Applet::immutabilityChanged,
this, &AppletInterface::immutableChanged);
connect(applet(), &Plasma::Applet::statusChanged,
this, &AppletInterface::statusChanged);
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->setInitializationDelayed(true);