src/gui/painting/qbackingstore_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   144 
   144 
   145     inline void addDirtyWidget(QWidget *widget, const QRegion &rgn)
   145     inline void addDirtyWidget(QWidget *widget, const QRegion &rgn)
   146     {
   146     {
   147         if (widget && !widget->d_func()->inDirtyList && !widget->data->in_destructor) {
   147         if (widget && !widget->d_func()->inDirtyList && !widget->data->in_destructor) {
   148             QWidgetPrivate *widgetPrivate = widget->d_func();
   148             QWidgetPrivate *widgetPrivate = widget->d_func();
       
   149 #ifndef QT_NO_GRAPHICSEFFECT
   149             if (widgetPrivate->graphicsEffect)
   150             if (widgetPrivate->graphicsEffect)
   150                 widgetPrivate->dirty = widgetPrivate->effectiveRectFor(rgn.boundingRect());
   151                 widgetPrivate->dirty = widgetPrivate->effectiveRectFor(rgn.boundingRect());
   151             else
   152             else
       
   153 #endif //QT_NO_GRAPHICSEFFECT
   152                 widgetPrivate->dirty = rgn;
   154                 widgetPrivate->dirty = rgn;
   153             dirtyWidgets.append(widget);
   155             dirtyWidgets.append(widget);
   154             widgetPrivate->inDirtyList = true;
   156             widgetPrivate->inDirtyList = true;
   155         }
   157         }
   156     }
   158     }