Skip to content
Permalink
Browse files

Don't add Geometry Generator as Outline option

  • Loading branch information
m-kuhn committed Dec 17, 2015
1 parent bc30075 commit 75434086312dd89612c058d50919066ab7b0ca28
Showing with 12 additions and 8 deletions.
  1. +12 −8 src/gui/symbology-ng/qgslayerpropertieswidget.cpp
@@ -138,19 +138,23 @@ void QgsLayerPropertiesWidget::setExpressionContext( QgsExpressionContext *conte

void QgsLayerPropertiesWidget::populateLayerTypes()
{
QStringList types = QgsSymbolLayerV2Registry::instance()->symbolLayersForType( mSymbol->type() );
QStringList symbolLayerIds = QgsSymbolLayerV2Registry::instance()->symbolLayersForType( mSymbol->type() );

for ( int i = 0; i < types.count(); i++ )
cboLayerType->addItem( QgsSymbolLayerV2Registry::instance()->symbolLayerMetadata( types[i] )->visibleName(), types[i] );
Q_FOREACH ( const QString& symbolLayerId, symbolLayerIds )
cboLayerType->addItem( QgsSymbolLayerV2Registry::instance()->symbolLayerMetadata( symbolLayerId )->visibleName(), symbolLayerId );

if ( mSymbol->type() == QgsSymbolV2::Fill )
{
QStringList typesLine = QgsSymbolLayerV2Registry::instance()->symbolLayersForType( QgsSymbolV2::Line );
for ( int i = 0; i < typesLine.count(); i++ )
QStringList lineLayerIds = QgsSymbolLayerV2Registry::instance()->symbolLayersForType( QgsSymbolV2::Line );
Q_FOREACH ( const QString& lineLayerId, lineLayerIds )
{
QString visibleName = QgsSymbolLayerV2Registry::instance()->symbolLayerMetadata( typesLine[i] )->visibleName();
QString name = QString( tr( "Outline: %1" ) ).arg( visibleName );
cboLayerType->addItem( name, typesLine[i] );
QgsSymbolLayerV2AbstractMetadata* layerInfo = QgsSymbolLayerV2Registry::instance()->symbolLayerMetadata( lineLayerId );
if ( layerInfo->type() != QgsSymbolV2::Hybrid )
{
QString visibleName = layerInfo->visibleName();
QString name = QString( tr( "Outline: %1" ) ).arg( visibleName );
cboLayerType->addItem( name, lineLayerId );
}
}
}
}

0 comments on commit 7543408

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