don't try to resize the extender when an inner itel resizes, it can cause endless resizing loops

svn path=/trunk/KDE/kdelibs/; revision=1211658
This commit is contained in:
Marco Martin 2011-01-04 15:23:20 +00:00
parent 510d4d57a5
commit 6df6c161f7

View File

@ -218,8 +218,6 @@ 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();
//resize to the max between the extender size hint and ours (that's because the group can still not be in the extender layout)
extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize).expandedTo(effectiveSizeHint(Qt::PreferredSize)).width(), extender()->size().height());
}
return ExtenderItem::eventFilter(watched, event);