From cad79f87813d54548a18e56b57e6ebf074fac19b Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Wed, 11 Nov 2009 12:26:46 +1000 Subject: [PATCH] Support OpenVG graphics systems that inherit from QVGPixmapData Custom graphics systems, may want to inherit from QVGPixmapData to implement alternative pixmap management strategies. We make toVGImage() overridable and the data members protected to support this. Reviewed-by: Sarah Smith (cherry picked from commit 71d05ae1f212793b59c2f0fcb68ec5f21732073e) --- src/openvg/qpixmapdata_vg_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openvg/qpixmapdata_vg_p.h b/src/openvg/qpixmapdata_vg_p.h index f552c7b58a..f6fac88bac 100644 --- a/src/openvg/qpixmapdata_vg_p.h +++ b/src/openvg/qpixmapdata_vg_p.h @@ -89,10 +89,10 @@ public: // Return the VGImage form of this pixmap, creating it if necessary. // This assumes that there is a VG context current. - VGImage toVGImage(); + virtual VGImage toVGImage(); // Return the VGImage form for a specific opacity setting. - VGImage toVGImage(qreal opacity); + virtual VGImage toVGImage(qreal opacity); QSize size() const { return QSize(w, h); } @@ -108,7 +108,7 @@ protected: void cleanup(); #endif -private: +protected: VGImage vgImage; VGImage vgImageOpacity; qreal cachedOpacity; -- 2.11.4.GIT