Avoid making extenderitems dissapear when moving them from an internal:extender to the
same internal:extender. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861903
This commit is contained in:
parent
b424645a31
commit
ec98e6c6ba
@ -416,6 +416,13 @@ QIcon ExtenderItem::icon() const
|
||||
|
||||
void ExtenderItem::setExtender(Extender *extender, const QPointF &pos)
|
||||
{
|
||||
if (extender == d->extender) {
|
||||
//We're not moving between extenders, so just insert this item back into the layout.
|
||||
setParentItem(extender);
|
||||
extender->d->addExtenderItem(this, pos);
|
||||
return;
|
||||
}
|
||||
|
||||
//We are switching extender...
|
||||
//first remove this item from the old extender.
|
||||
if (d->extender) {
|
||||
|
Loading…
Reference in New Issue
Block a user