From 6215a71fe75a541a0a9fe9b1dfc31a6f70170876 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Apr 2010 16:21:12 +0000 Subject: [PATCH] ssign the view to the qstyleoption only if it's the proper view svn path=/trunk/KDE/kdelibs/; revision=1114459 --- applet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 2c45a7068..de6e4bd08 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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 {