Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show mesh layer icon in layer tree #20722
  • Loading branch information
PeterPetrik authored and nyalldawson committed Jan 28, 2019
1 parent 1b4a913 commit 3d0cf5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -199,6 +199,10 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
{
return QgsLayerItem::iconRaster();
}
else if ( layer->type() == QgsMapLayer::MeshLayer )
{
return QgsLayerItem::iconMesh();
}

QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
QIcon icon;
Expand Down

0 comments on commit 3d0cf5c

Please sign in to comment.