Skip to content
Permalink
Browse files

Fix renderer items in legend (#8651)

  • Loading branch information
mhugent committed Oct 4, 2013
1 parent b9bbe65 commit c71d87769e0a1a5f7d66c830b62931edff6a1c70
@@ -635,8 +635,9 @@ QgsLegendSymbologyList QgsCategorizedSymbolRendererV2::legendSymbologyItems( QSi
return lst;
}

QgsLegendSymbolList QgsCategorizedSymbolRendererV2::legendSymbolItems()
QgsLegendSymbolList QgsCategorizedSymbolRendererV2::legendSymbolItems( double scaleDenominator )
{
Q_UNUSED( scaleDenominator );
QSettings settings;
bool showClassifiers = settings.value( "/qgis/showLegendClassifiers", false ).toBool();

@@ -125,7 +125,7 @@ class CORE_EXPORT QgsCategorizedSymbolRendererV2 : public QgsFeatureRendererV2
//! return a list of item text / symbol
//! @note: this method was added in version 1.5
//! @note not available in python bindings
virtual QgsLegendSymbolList legendSymbolItems();
virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1 );

QgsSymbolV2* sourceSymbol();
void setSourceSymbol( QgsSymbolV2* sym );
@@ -1095,8 +1095,9 @@ QgsLegendSymbologyList QgsGraduatedSymbolRendererV2::legendSymbologyItems( QSize
return lst;
}

QgsLegendSymbolList QgsGraduatedSymbolRendererV2::legendSymbolItems()
QgsLegendSymbolList QgsGraduatedSymbolRendererV2::legendSymbolItems( double scaleDenominator )
{
Q_UNUSED( scaleDenominator );
QSettings settings;
bool showClassifiers = settings.value( "/qgis/showLegendClassifiers", false ).toBool();

@@ -137,7 +137,7 @@ class CORE_EXPORT QgsGraduatedSymbolRendererV2 : public QgsFeatureRendererV2
//! return a list of item text / symbol
//! @note: this method was added in version 1.5
//! @note not available in python bindings
virtual QgsLegendSymbolList legendSymbolItems();
virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1 );

QgsSymbolV2* sourceSymbol();
void setSourceSymbol( QgsSymbolV2* sym );
@@ -373,8 +373,9 @@ QgsLegendSymbologyList QgsSingleSymbolRendererV2::legendSymbologyItems( QSize ic
return lst;
}

QgsLegendSymbolList QgsSingleSymbolRendererV2::legendSymbolItems()
QgsLegendSymbolList QgsSingleSymbolRendererV2::legendSymbolItems( double scaleDenominator )
{
Q_UNUSED( scaleDenominator );
QgsLegendSymbolList lst;
lst << qMakePair( QString(), mSymbol );
return lst;
@@ -78,7 +78,7 @@ class CORE_EXPORT QgsSingleSymbolRendererV2 : public QgsFeatureRendererV2
//! return a list of item text / symbol
//! @note: this method was added in version 1.5
//! @note not available in python bindings
virtual QgsLegendSymbolList legendSymbolItems();
virtual QgsLegendSymbolList legendSymbolItems( double scaleDenominator = -1 );

protected:
QgsSymbolV2* mSymbol;

0 comments on commit c71d877

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