don't set d->size directly; this fixes the weird issues with setting minimum size before contentsize and makes sure the svg is updated

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773472
This commit is contained in:
Chani Armitage 2008-02-11 05:53:19 +00:00
parent 9335a50776
commit 1c4bdb9408

View File

@ -200,8 +200,7 @@ void Widget::setMinimumSize(const QSizeF& size)
{
d->minimumSize = size;
if (d->size != d->size.expandedTo(size)) {
d->size = d->size.expandedTo(size);
updateGeometry();
setGeometry(QRectF(pos(), d->size.expandedTo(size)));
}
}
@ -214,8 +213,7 @@ void Widget::setMaximumSize(const QSizeF& size)
{
d->maximumSize = size;
if (d->size != d->size.boundedTo(size)) {
d->size = d->size.boundedTo(size);
updateGeometry();
setGeometry(QRectF(pos(), d->size.boundedTo(size)));
}
}