Skip to content
Permalink
Browse files

[ui] Display map layer functions above list of map layers

  • Loading branch information
nirvn authored and nyalldawson committed Mar 12, 2021
1 parent 516087e commit c1a2904ccef203f5f70a149c20707379d602ce6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsexpressiontreeview.cpp
@@ -413,7 +413,7 @@ void QgsExpressionTreeView::loadLayers()
for ( ; layerIt != layers.constEnd(); ++layerIt )
{
QIcon icon = QgsMapLayerModel::iconForLayer( layerIt.value() );
registerItem( QStringLiteral( "Map Layers" ), layerIt.value()->name(), QStringLiteral( "'%1'" ).arg( layerIt.key() ), formatLayerHelp( layerIt.value() ), QgsExpressionItem::ExpressionNode, false, 1, icon );
registerItem( QStringLiteral( "Map Layers" ), layerIt.value()->name(), QStringLiteral( "'%1'" ).arg( layerIt.key() ), formatLayerHelp( layerIt.value() ), QgsExpressionItem::ExpressionNode, false, 99, icon );
}
}

0 comments on commit c1a2904

Please sign in to comment.