invalidate the hint caches, the resize the extender to the hint
svn path=/trunk/KDE/kdelibs/; revision=1128980
This commit is contained in:
parent
8ec35c6c91
commit
530c3fe70a
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user