A todo for later (fix the shadow when the widget has children).

svn path=/trunk/KDE/kdelibs/; revision=1070097
This commit is contained in:
Adenilson Cavalcanti Da Silva 2010-01-04 21:09:59 +00:00
parent 4b305cbf84
commit 6d3b0437c6

View File

@ -44,6 +44,8 @@ void ShadowFake::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
void ShadowFake::setTarget(QGraphicsWidget *target)
{
//TODO: use childItems() and also draw child elements in the shadow
//if it is > 0
m_target = target;
setParentItem(target);
resize(target->size());