Fixing behavior showed in IconWidget (thanks aseigo for helping, I owne you

ein WEISSBIER!).


svn path=/trunk/KDE/kdelibs/; revision=1094514
This commit is contained in:
Adenilson Cavalcanti Da Silva 2010-02-22 21:38:22 +00:00
parent ee1b3166f7
commit 24ea07b548

View File

@ -79,9 +79,11 @@ void ShadowFake::setTarget(QGraphicsWidget *target)
QPainter painter(&m_photo);
painter.setCompositionMode(QPainter::CompositionMode_SourceOver);
painter.fillRect(target->rect(), Qt::transparent);
QStyleOptionGraphicsItem style;
//FIXME: some widgets follow exposedRect viewport (e.g. QGraphicsWebView)
style.exposedRect = target->boundingRect();
style.rect = target->rect().toRect();
target->paint(&painter, &style, 0);
paintSubChildren(&painter, &style, target);
painter.end();