diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-29 09:09:39 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-29 09:09:39 (GMT) |
commit | a73af692412630e9a25ae1ddb403413f3d8a1de6 (patch) | |
tree | 21ba754816f65e1f6077060483ad6dc60a43154c /src/gui/painting/qbackingstore_p.h | |
parent | 269b61dd08b7e37445f40e3a1d0854bcf85f445b (diff) | |
download | Qt-a73af692412630e9a25ae1ddb403413f3d8a1de6.zip Qt-a73af692412630e9a25ae1ddb403413f3d8a1de6.tar.gz Qt-a73af692412630e9a25ae1ddb403413f3d8a1de6.tar.bz2 |
Added WindowSurfaceFeature enum to QWindowSurface.
Now that we've added hasPreservedContents() it's cleaner to convert the
various features to feature flags, which is also more extensible in case
more flags are needed in the future.
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui/painting/qbackingstore_p.h')
-rw-r--r-- | src/gui/painting/qbackingstore_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/painting/qbackingstore_p.h b/src/gui/painting/qbackingstore_p.h index 39bf66c..05f4bfc 100644 --- a/src/gui/painting/qbackingstore_p.h +++ b/src/gui/painting/qbackingstore_p.h @@ -262,8 +262,7 @@ private: } inline bool hasStaticContents() const - { return !staticWidgets.isEmpty() && windowSurface->hasStaticContentsSupport() - && windowSurface->hasPartialUpdateSupport(); } + { return !staticWidgets.isEmpty() && windowSurface->hasFeature(QWindowSurface::StaticContents); } friend QRegion qt_dirtyRegion(QWidget *); friend class QWidgetPrivate; |