[ContainmentInterface] Use setSize instead of setWidth/setHeight in createApplet

This avoids needless binding updates and expensive layouting.

Differential Revision: https://phabricator.kde.org/D4352
This commit is contained in:
Kai Uwe Broulik 2017-01-30 16:16:40 +01:00
parent d38be811e8
commit 031bd773b7

View File

@ -210,8 +210,7 @@ Plasma::Applet *ContainmentInterface::createApplet(const QString &plugin, const
return applet;
}
if (geom.width() > 0 && geom.height() > 0) {
appletGraphicObject->setWidth(geom.width());
appletGraphicObject->setHeight(geom.height());
appletGraphicObject->setSize(geom.size());
}
blockSignals(false);