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:
parent
956b5a8cc2
commit
6215a71fe7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user