From a163a59624b5376260923f5918d5e6632799df03 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 7 Apr 2010 13:53:49 +0000 Subject: [PATCH] try to keep the parent widget of a more correct size svn path=/trunk/KDE/kdelibs/; revision=1112159 --- extenders/extenderitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extenders/extenderitem.cpp b/extenders/extenderitem.cpp index b4c4b22a4..1936c862a 100644 --- a/extenders/extenderitem.cpp +++ b/extenders/extenderitem.cpp @@ -517,6 +517,10 @@ 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)); + } } }