All pastes #800556 Raw Edit

Anonymous

public text v1 · immutable
#800556 ·published 2007-11-28 15:28 UTC
rendered paste body
Index: runtime/kstyles/oxygen/oxygen.cpp
===================================================================
--- runtime/kstyles/oxygen/oxygen.cpp   (revision 742660)
+++ runtime/kstyles/oxygen/oxygen.cpp   (working copy)
@@ -2028,11 +2028,13 @@ bool OxygenStyle::eventFilter(QObject *o
         if (ev->type() == QEvent::Paint)
         {
             QWidget *widget = static_cast<QWidget*>(obj);
+            if (widget->autoFillBackground()) {
             QPainter p(widget);
             QPaintEvent *e = (QPaintEvent*)ev;
             p.setClipRegion(e->region());
             renderWindowBackground(&p, e->rect(), widget);
         }
+        }
         return false;
     }