[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;
|
return applet;
|
||||||
}
|
}
|
||||||
if (geom.width() > 0 && geom.height() > 0) {
|
if (geom.width() > 0 && geom.height() > 0) {
|
||||||
appletGraphicObject->setWidth(geom.width());
|
appletGraphicObject->setSize(geom.size());
|
||||||
appletGraphicObject->setHeight(geom.height());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blockSignals(false);
|
blockSignals(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user