be sure to relayout if a different position is asked

svn path=/trunk/KDE/kdelibs/; revision=1129158
This commit is contained in:
Marco Martin 2010-05-21 12:49:27 +00:00
parent d19118b818
commit f08bf871f6

View File

@ -422,6 +422,8 @@ void Extender::itemAddedEvent(ExtenderItem *item, const QPointF &pos)
{
if (!item->group()) {
if (pos == QPointF(-1, -1)) {
//if it was already there, reposition
d->layout->removeItem(item);
//if just plain adding an item, add it at a sane position:
if (appearance() == BottomUpStacked) {
//at the top