diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-28 11:39:33 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-10-28 12:56:27 (GMT) |
commit | 992f5cef19ce9e313dd06279c47d7535c6dbc857 (patch) | |
tree | 103307bcde9d893ce7d5cefb866c33dd5e1ec359 /src/gui/kernel/qwidget_p.h | |
parent | f62e0f8323304b2afbf2e3b918d611ea1d0f6856 (diff) | |
download | Qt-992f5cef19ce9e313dd06279c47d7535c6dbc857.zip Qt-992f5cef19ce9e313dd06279c47d7535c6dbc857.tar.gz Qt-992f5cef19ce9e313dd06279c47d7535c6dbc857.tar.bz2 |
Wrong caching of opaque children in QWidget.
The opaque children cache was clipped to all the ancestors up to the
top-level, which means whenever a widget changes geometry all the
children must be invalidated. However, the bug was that we didn't
invalidate the children, and that is of course slow so we don't want
to do it either. A better solution is to only clip the children cache to the
widget itself (widget->rect() instead of widget->clipRect()), and we can
perfectly do this because the region we subtract the opaque children from is
already inside the clipRect().
Auto-test included.
Task-number: QTBUG-4245 (related to)
Diffstat (limited to 'src/gui/kernel/qwidget_p.h')
-rw-r--r-- | src/gui/kernel/qwidget_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h index 159a3f2..5cea641 100644 --- a/src/gui/kernel/qwidget_p.h +++ b/src/gui/kernel/qwidget_p.h @@ -386,7 +386,6 @@ public: bool paintOnScreen() const; void invalidateGraphicsEffectsRecursively(); - QRegion getOpaqueRegion() const; const QRegion &getOpaqueChildren() const; void setDirtyOpaqueRegion(); |