taking an item also requires re-setting the parent

BUG:250420

svn path=/trunk/KDE/kdelibs/; revision=1173601
This commit is contained in:
Aaron J. Seigo 2010-09-09 20:12:03 +00:00
parent 1b826931d3
commit 6f0631d700

View File

@ -501,6 +501,9 @@ QGraphicsLayoutItem *TabBar::takeTab(int index)
if (returnItem) {
returnItem->setParentLayoutItem(0);
if (QGraphicsItem *item = returnItem->graphicsItem()) {
item->setParentItem(0);
}
}
page->setLayout(0);