diff options
author | Armin Berres <armin.berres@basyskom.de> | 2011-03-16 07:23:57 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-03-16 07:23:57 (GMT) |
commit | f673f4c8273bcdde76b36cb58cb7b5e46a87f1ac (patch) | |
tree | 913e5598a782d0f22cc4752a789d0f43bb3caa65 /src/openvg | |
parent | 81ce61c9459c85f53486e668b532fe43a4d40ff0 (diff) | |
download | Qt-f673f4c8273bcdde76b36cb58cb7b5e46a87f1ac.zip Qt-f673f4c8273bcdde76b36cb58cb7b5e46a87f1ac.tar.gz Qt-f673f4c8273bcdde76b36cb58cb7b5e46a87f1ac.tar.bz2 |
Make getters for staticContentsSupport and partialUpdateSupport virtual
When QRuntimeGraphicsSystem is asked for its support for static contents
of partial updates it should return the value for the currently running
wrapped graphicssystem. As the getters have not been virtual so far this
could not be implemented.
Additionally the setters have been removed as these values are not
supposed to be set from the outside. Only the graphicssystems itself
knows what it supports. If the default values should be changed the
methods should be overwritten.
Merge-request: 1136
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/openvg')
-rw-r--r-- | src/openvg/qwindowsurface_vg.cpp | 6 | ||||
-rw-r--r-- | src/openvg/qwindowsurface_vg_p.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/openvg/qwindowsurface_vg.cpp b/src/openvg/qwindowsurface_vg.cpp index 9ce7f9a..6f99de4 100644 --- a/src/openvg/qwindowsurface_vg.cpp +++ b/src/openvg/qwindowsurface_vg.cpp @@ -57,7 +57,6 @@ QVGWindowSurface::QVGWindowSurface(QWidget *window) { // Create the default type of EGL window surface for windows. d_ptr = new QVGEGLWindowSurfaceDirect(this); - setStaticContentsSupport(d_ptr->supportsStaticContents()); } QVGWindowSurface::QVGWindowSurface @@ -120,6 +119,11 @@ QPaintEngine *QVGWindowSurface::paintEngine() const return d_ptr->paintEngine(); } +bool QVGWindowSurface::hasStaticContentsSupport() const +{ + d_ptr->supportsStaticContents(); +} + int QVGWindowSurface::metric(PaintDeviceMetric met) const { return qt_paint_device_metric(window(), met); diff --git a/src/openvg/qwindowsurface_vg_p.h b/src/openvg/qwindowsurface_vg_p.h index 06b16d0..2d6b4f9 100644 --- a/src/openvg/qwindowsurface_vg_p.h +++ b/src/openvg/qwindowsurface_vg_p.h @@ -78,6 +78,8 @@ public: QPaintEngine *paintEngine() const; + bool hasStaticContentsSupport() const; + protected: int metric(PaintDeviceMetric metric) const; |