Small stylistic improvement

This commit is contained in:
Sebastian Kügler 2013-08-24 01:09:45 +02:00
parent b9723c3142
commit 6628cf0a7c

View File

@ -100,17 +100,17 @@ void View::setContainment(Plasma::Containment *cont)
emit containmentChanged();
if (cont) {
connect(cont, &Plasma::Containment::locationChanged,
this, &View::locationChanged);
connect(cont, &Plasma::Containment::formFactorChanged,
this, &View::formFactorChanged);
connect(cont, &Plasma::Containment::configureRequested,
this, &View::showConfigurationInterface);
} else {
if (!cont) {
return;
}
connect(cont, &Plasma::Containment::locationChanged,
this, &View::locationChanged);
connect(cont, &Plasma::Containment::formFactorChanged,
this, &View::formFactorChanged);
connect(cont, &Plasma::Containment::configureRequested,
this, &View::showConfigurationInterface);
QObject *graphicObject = m_containment.data()->property("graphicObject").value<QObject *>();
if (graphicObject) {