resize to proper size when the group expands
svn path=/trunk/KDE/kdelibs/; revision=1112554
This commit is contained in:
parent
62ac00ba11
commit
c93a690067
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user