[25d] Apply style to subsymbol in geometry generators

This commit is contained in:
Matthias Kuhn 2016-01-19 21:12:55 +01:00
parent 49b5a2b6b7
commit aca49992a9
2 changed files with 7 additions and 0 deletions

View File

@ -203,3 +203,8 @@ void QgsGeometryGeneratorSymbolLayerV2::render( QgsSymbolV2RenderContext& contex
mSymbol->renderFeature( f, context.renderContext(), -1, context.selected() );
}
}
void QgsGeometryGeneratorSymbolLayerV2::setColor( const QColor& color )
{
mSymbol->setColor( color );
}

View File

@ -63,6 +63,8 @@ class CORE_EXPORT QgsGeometryGeneratorSymbolLayerV2 : public QgsSymbolLayerV2
*/
QString geometryExpression() const { return mExpression->expression(); }
void setColor( const QColor& color ) override;
virtual QgsSymbolV2* subSymbol() override { return mSymbol; }
virtual bool setSubSymbol( QgsSymbolV2* symbol ) override;