From 530c3fe70aa8040e20f7b756dc66d49bd0d350f0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 20 May 2010 20:41:11 +0000 Subject: [PATCH] invalidate the hint caches, the resize the extender to the hint svn path=/trunk/KDE/kdelibs/; revision=1128980 --- extenders/extenderitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extenders/extenderitem.cpp b/extenders/extenderitem.cpp index e942f0778..5b9a69ab8 100644 --- a/extenders/extenderitem.cpp +++ b/extenders/extenderitem.cpp @@ -528,9 +528,9 @@ void ExtenderItem::setCollapsed(bool collapsed) } else { d->layout->insertItem(1, d->widget); } - QGraphicsWidget *pw = qgraphicsitem_cast(parentItem()); - if (pw) { - pw->resize(pw->effectiveSizeHint(Qt::PreferredSize)); + updateGeometry(); + if (extender()) { + extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize)); } } }