summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qwidget_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-10-28 12:39:33 +0100
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-10-28 13:56:27 +0100
commit992f5cef19ce9e313dd06279c47d7535c6dbc857 (patch)
tree103307bcde9d893ce7d5cefb866c33dd5e1ec359 /src/gui/kernel/qwidget_p.h
parentf62e0f8323304b2afbf2e3b918d611ea1d0f6856 (diff)
downloadqt4-tools-992f5cef19ce9e313dd06279c47d7535c6dbc857.tar.gz
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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h
index 159a3f28ad..5cea641e55 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();