summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-11 02:26:46 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-11 02:26:46 (GMT)
commit71d05ae1f212793b59c2f0fcb68ec5f21732073e (patch)
tree07198dd386d9c182a7d6e0e65c4efa9b625a8d27 /src/openvg
parente2e8104c03608ef753f84740bdf6ac1bff18be84 (diff)
downloadQt-71d05ae1f212793b59c2f0fcb68ec5f21732073e.zip
Qt-71d05ae1f212793b59c2f0fcb68ec5f21732073e.tar.gz
Qt-71d05ae1f212793b59c2f0fcb68ec5f21732073e.tar.bz2
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
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qpixmapdata_vg_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvg/qpixmapdata_vg_p.h b/src/openvg/qpixmapdata_vg_p.h
index f552c7b..f6fac88 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;