solve a performance issue : a crazy number of repaint

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796375
This commit is contained in:
Alexis Ménard 2008-04-13 13:38:21 +00:00
parent 4467261c95
commit 88b25b7468

View File

@ -1442,8 +1442,12 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
void Applet::setGeometry(const QRectF& geometry)
{
QSizeF beforeSize = Widget::geometry().size();
Widget::setGeometry(geometry);
updateConstraints(Plasma::SizeConstraint);
if (geometry.size() != beforeSize)
{
updateConstraints(Plasma::SizeConstraint);
}
//FIXME see for who is connect to this???
//emit geometryChanged();
}