[QGIS Commit] r13282 - trunk/qgis/src/plugins/point_displacement_renderer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Apr 8 07:07:05 EDT 2010


Author: mhugent
Date: 2010-04-08 07:07:04 -0400 (Thu, 08 Apr 2010)
New Revision: 13282

Modified:
   trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.cpp
   trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.h
Log:
Show displacement renderer symbols in composer legend

Modified: trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.cpp
===================================================================
--- trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.cpp	2010-04-08 09:43:46 UTC (rev 13281)
+++ trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.cpp	2010-04-08 11:07:04 UTC (rev 13282)
@@ -324,6 +324,15 @@
   return QgsLegendSymbologyList();
 }
 
+QgsLegendSymbolList QgsPointDisplacementRenderer::legendSymbolItems()
+{
+  if ( mRenderer )
+  {
+    return mRenderer->legendSymbolItems();
+  }
+  return QgsLegendSymbolList();
+}
+
 void QgsPointDisplacementRenderer::createDisplacementGroups( QgsVectorLayer* vlayer, const QgsRectangle& viewExtent )
 {
   if ( !vlayer || ( vlayer->wkbType() != QGis::WKBPoint && vlayer->wkbType() != QGis::WKBPoint25D ) )

Modified: trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.h
===================================================================
--- trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.h	2010-04-08 09:43:46 UTC (rev 13281)
+++ trunk/qgis/src/plugins/point_displacement_renderer/qgspointdisplacementrenderer.h	2010-04-08 11:07:04 UTC (rev 13282)
@@ -54,6 +54,8 @@
 
     QgsLegendSymbologyList legendSymbologyItems( QSize iconSize );
 
+    QgsLegendSymbolList legendSymbolItems();
+
     void setLabelAttributeName( const QString& name ) { mLabelAttributeName = name; }
     QString labelAttributeName() const { return mLabelAttributeName; }
 



More information about the QGIS-commit mailing list