diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-04-16 12:52:05 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2010-04-16 14:58:08 (GMT) |
commit | 8ebcd4db8d57b7e90ec86c9290682ee9c2e576b7 (patch) | |
tree | b1a001064ec08a3dc64e098e635255af100105ce /src/gui/painting/qwindowsurface_p.h | |
parent | 74f28819d985984170964d12d8f527034db93017 (diff) | |
download | Qt-8ebcd4db8d57b7e90ec86c9290682ee9c2e576b7.zip Qt-8ebcd4db8d57b7e90ec86c9290682ee9c2e576b7.tar.gz Qt-8ebcd4db8d57b7e90ec86c9290682ee9c2e576b7.tar.bz2 |
Some QWindowSurface implementations might implement flush as a buffer
flip. Such window surfaces therefore destroy the contents during flush.
In order to render correctly on these surfaces, any update, no matter
how small, needs to trigger the entire window to be redrawn.
Auto test included.
Task-number: Relates to QTBUG-9978
Reviewed-by: tom
Diffstat (limited to 'src/gui/painting/qwindowsurface_p.h')
-rw-r--r-- | src/gui/painting/qwindowsurface_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qwindowsurface_p.h b/src/gui/painting/qwindowsurface_p.h index 0a453af..e6ee5f6 100644 --- a/src/gui/painting/qwindowsurface_p.h +++ b/src/gui/painting/qwindowsurface_p.h @@ -90,6 +90,7 @@ public: inline QRect rect(const QWidget *widget) const; bool hasStaticContentsSupport() const; + bool hasPartialUpdateSupport() const; void setStaticContents(const QRegion ®ion); QRegion staticContents() const; @@ -97,6 +98,7 @@ public: protected: bool hasStaticContents() const; void setStaticContentsSupport(bool enable); + void setPartialUpdateSupport(bool enable); private: QWindowSurfacePrivate *d_ptr; |