equal
deleted
inserted
replaced
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 } |