solve a performance issue : a crazy number of repaint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796375
This commit is contained in:
parent
4467261c95
commit
88b25b7468
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user