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:
parent
ee1b3166f7
commit
24ea07b548
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user