try to keep the parent widget of a more correct size

svn path=/trunk/KDE/kdelibs/; revision=1112159
This commit is contained in:
Marco Martin 2010-04-07 13:53:49 +00:00
parent a45a7fe57a
commit a163a59624

View File

@ -517,6 +517,10 @@ 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));
}
}
}