update the size when an item in a grup wants to be resized

svn path=/trunk/KDE/kdelibs/; revision=1212619
This commit is contained in:
Marco Martin 2011-01-07 17:46:17 +00:00
parent 393d207aca
commit a757529178
2 changed files with 2 additions and 1 deletions

View File

@ -218,6 +218,7 @@ bool ExtenderGroup::eventFilter(QObject *watched, QEvent *event)
if (watched == d->childsWidget && event->type() == QEvent::GraphicsSceneResize) {
static_cast<QGraphicsLayoutItem *>(extender()->d->scrollWidget)->updateGeometry();
static_cast<QGraphicsLayoutItem *>(extender())->updateGeometry();
extender()->d->adjustSize();
}
return ExtenderItem::eventFilter(watched, event);

View File

@ -616,7 +616,7 @@ void ExtenderItem::setCollapsed(bool collapsed)
static_cast<QGraphicsLayoutItem *>(group())->updateGeometry();
}
extender()->resize(extender()->d->mainWidget->effectiveSizeHint(Qt::PreferredSize));
extender()->d->adjustSize();
}
}
}