try to keep the parent widget of a more correct size
svn path=/trunk/KDE/kdelibs/; revision=1112159
This commit is contained in:
parent
a45a7fe57a
commit
a163a59624
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user