From 980e482f4d149126eba46cc9ce4025169a42d2e1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 8 Aug 2013 13:50:03 +0200 Subject: [PATCH] convert a bunch of connects to new syntax avoid future risks of connects silently failing --- .../qml/plasmoid/appletinterface.cpp | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/scriptengines/qml/plasmoid/appletinterface.cpp b/src/scriptengines/qml/plasmoid/appletinterface.cpp index bc5abccee..a9a3e626b 100644 --- a/src/scriptengines/qml/plasmoid/appletinterface.cpp +++ b/src/scriptengines/qml/plasmoid/appletinterface.cpp @@ -63,15 +63,20 @@ AppletInterface::AppletInterface(DeclarativeAppletScript *script, QQuickItem *pa qmlRegisterType(); qmlRegisterType(); - 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);