Skip to content

Commit

Permalink
Different approach to backwards compatibility. Fixes #1220 again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11276 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Aug 5, 2009
1 parent 421d5aa commit 2c666b7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/renderer/qgsrenderer.h
Expand Up @@ -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
Expand Down

0 comments on commit 2c666b7

Please sign in to comment.