re add the automatic resize on sub items add and removal
svn path=/trunk/KDE/kdelibs/; revision=1113044
This commit is contained in:
parent
937892d2ee
commit
63952c3a78
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user