set a parent on the item so we can count on it getting deleted when we remove it

svn path=/trunk/KDE/kdelibs/; revision=1047342
This commit is contained in:
Aaron J. Seigo 2009-11-11 01:55:11 +00:00
parent e77dfbe529
commit 687e1f57a1

View File

@ -1116,6 +1116,7 @@ void Applet::showMessage(const QIcon &icon, const QString &message, const Messag
delete d->messageDialog.data();
d->createMessageOverlay();
d->messageOverlay->opacity = 0.8;
mainWidget->setParentItem(d->messageOverlay);
QGraphicsLinearLayout *l = new QGraphicsLinearLayout(d->messageOverlay);
l->addItem(mainWidget);
}