return the proper shape

svn path=/trunk/KDE/kdelibs/; revision=1039146
This commit is contained in:
Marco Martin 2009-10-22 20:38:32 +00:00
parent a45a20c32c
commit 2f7ba10bfc

View File

@ -138,7 +138,7 @@ QPainterPath AppletHandle::shape() const
//when the containment changes the applet is reset to 0 //when the containment changes the applet is reset to 0
if (m_applet) { if (m_applet) {
QPainterPath path = PaintUtils::roundedRectangle(m_decorationRect, 10); QPainterPath path = PaintUtils::roundedRectangle(m_decorationRect, 10);
return path.united(m_applet->mapToParent(m_applet->shape())); return path.united(m_applet->shape());
} else { } else {
return QGraphicsItem::shape(); return QGraphicsItem::shape();
} }