summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qwindowsurface_p.h
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-04-16 12:52:05 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-04-16 14:58:08 (GMT)
commit8ebcd4db8d57b7e90ec86c9290682ee9c2e576b7 (patch)
treeb1a001064ec08a3dc64e098e635255af100105ce /src/gui/painting/qwindowsurface_p.h
parent74f28819d985984170964d12d8f527034db93017 (diff)
downloadQt-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.h2
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 &region);
QRegion staticContents() const;
@@ -97,6 +98,7 @@ public:
protected:
bool hasStaticContents() const;
void setStaticContentsSupport(bool enable);
+ void setPartialUpdateSupport(bool enable);
private:
QWindowSurfacePrivate *d_ptr;