[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:
parent
d38be811e8
commit
031bd773b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user