remove items that are removed from us from our layout, as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=738068
This commit is contained in:
parent
40e5395c3e
commit
2f5fa3f5fa
@ -30,7 +30,6 @@
|
||||
#include <QPainter>
|
||||
#include <QPixmapCache>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
#include <QGraphicsSceneContextMenuEvent>
|
||||
|
||||
#include <KDebug>
|
||||
|
||||
@ -445,7 +444,11 @@ QVariant Widget::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
if (change == QGraphicsItem::ItemChildRemovedChange) {
|
||||
Widget *child = dynamic_cast<Plasma::Widget*>(value.value<QGraphicsItem*>());
|
||||
if (child) {
|
||||
kDebug() << "removing" << (QObject*)child;
|
||||
d->childList.removeAll(child);
|
||||
if (layout()) {
|
||||
layout()->removeItem(child);
|
||||
}
|
||||
updateGeometry();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user