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:
parent
510d4d57a5
commit
6df6c161f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user