Skip to content
Permalink
Browse files

Different approach to backwards compatibility. Fixes #1220 again

git-svn-id: http://svn.osgeo.org/qgis/trunk@11276 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Aug 5, 2009
1 parent ca0b14d commit b47742851075005669b489e1593bac6548858774
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/core/renderer/qgsrenderer.h
@@ -72,11 +72,12 @@ class CORE_EXPORT QgsRenderer

/**A vector layer passes features to a renderer object to change the brush and pen of the qpainter
@note added in 1.2 */
//void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected )
//{
// void renderFeature( renderContext, f, pic, selected, 255);
//}
virtual void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected, double opacity = 1.0 ) = 0;
void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected )
{
renderFeature( renderContext, f, pic, selected, 1.0);
}

virtual void renderFeature( QgsRenderContext &renderContext, QgsFeature& f, QImage* pic, bool selected, double opacity ) = 0;

/**Reads the renderer configuration from an XML file
@param rnode the Dom node to read

0 comments on commit b477428

Please sign in to comment.
You can’t perform that action at this time.