re add the automatic resize on sub items add and removal

svn path=/trunk/KDE/kdelibs/; revision=1113044
This commit is contained in:
Marco Martin 2010-04-09 19:13:46 +00:00
parent 937892d2ee
commit 63952c3a78

View File

@ -245,6 +245,7 @@ void ExtenderGroupPrivate::addItemToGroup(Plasma::ExtenderItem *item)
q->show();
}
scrollWidget->setVisible(!q->isCollapsed());
q->extender()->resize(q->extender()->effectiveSizeHint(Qt::PreferredSize));
}
}
@ -259,6 +260,7 @@ void ExtenderGroupPrivate::removeItemFromGroup(Plasma::ExtenderItem *item)
childsWidget->effectiveSizeHint(Qt::PreferredSize).height());
layout->removeItem(item);
item->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
q->extender()->resize(q->extender()->effectiveSizeHint(Qt::PreferredSize));
}
}