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:
parent
393d207aca
commit
a757529178
@ -218,6 +218,7 @@ bool ExtenderGroup::eventFilter(QObject *watched, QEvent *event)
|
|||||||
if (watched == d->childsWidget && event->type() == QEvent::GraphicsSceneResize) {
|
if (watched == d->childsWidget && event->type() == QEvent::GraphicsSceneResize) {
|
||||||
static_cast<QGraphicsLayoutItem *>(extender()->d->scrollWidget)->updateGeometry();
|
static_cast<QGraphicsLayoutItem *>(extender()->d->scrollWidget)->updateGeometry();
|
||||||
static_cast<QGraphicsLayoutItem *>(extender())->updateGeometry();
|
static_cast<QGraphicsLayoutItem *>(extender())->updateGeometry();
|
||||||
|
extender()->d->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
return ExtenderItem::eventFilter(watched, event);
|
return ExtenderItem::eventFilter(watched, event);
|
||||||
|
@ -616,7 +616,7 @@ void ExtenderItem::setCollapsed(bool collapsed)
|
|||||||
static_cast<QGraphicsLayoutItem *>(group())->updateGeometry();
|
static_cast<QGraphicsLayoutItem *>(group())->updateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
extender()->resize(extender()->d->mainWidget->effectiveSizeHint(Qt::PreferredSize));
|
extender()->d->adjustSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user