ssign the view to the qstyleoption only if it's the proper view

svn path=/trunk/KDE/kdelibs/; revision=1114459
This commit is contained in:
Marco Martin 2010-04-13 16:21:12 +00:00
parent 956b5a8cc2
commit 6215a71fe7

View File

@ -1375,8 +1375,11 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
// .. and now paint the actual containment interface, but with
// a Containment style option based on the one we get
// the view must be assigned only if its containment is actually our own
Containment::StyleOption coption(*option);
coption.view = v;
if (v->containment() == containment()) {
coption.view = v;
}
paintInterface(painter, &coption, contentsRect);
}
} else {