resize to proper size when the group expands

svn path=/trunk/KDE/kdelibs/; revision=1112554
This commit is contained in:
Marco Martin 2010-04-08 13:24:43 +00:00
parent 62ac00ba11
commit c93a690067

View File

@ -176,7 +176,10 @@ void ExtenderGroup::expandGroup()
} }
d->scrollWidget->show(); d->scrollWidget->show();
static_cast<QGraphicsLinearLayout *>(layout())->addItem(d->scrollWidget); static_cast<QGraphicsLinearLayout *>(layout())->addItem(d->scrollWidget);
extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize));
//resize to the bax between our hint and extender one
//TODO: do this on every childswidget resize?
extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize).expandedTo(effectiveSizeHint(Qt::PreferredSize)));
} }
void ExtenderGroup::collapseGroup() void ExtenderGroup::collapseGroup()