invalidate the hint caches, the resize the extender to the hint

svn path=/trunk/KDE/kdelibs/; revision=1128980
This commit is contained in:
Marco Martin 2010-05-20 20:41:11 +00:00
parent 8ec35c6c91
commit 530c3fe70a

View File

@ -528,9 +528,9 @@ void ExtenderItem::setCollapsed(bool collapsed)
} else {
d->layout->insertItem(1, d->widget);
}
QGraphicsWidget *pw = qgraphicsitem_cast<QGraphicsWidget *>(parentItem());
if (pw) {
pw->resize(pw->effectiveSizeHint(Qt::PreferredSize));
updateGeometry();
if (extender()) {
extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize));
}
}
}