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 {
|
} else {
|
||||||
d->layout->insertItem(1, d->widget);
|
d->layout->insertItem(1, d->widget);
|
||||||
}
|
}
|
||||||
QGraphicsWidget *pw = qgraphicsitem_cast<QGraphicsWidget *>(parentItem());
|
updateGeometry();
|
||||||
if (pw) {
|
if (extender()) {
|
||||||
pw->resize(pw->effectiveSizeHint(Qt::PreferredSize));
|
extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user