Skip to content

Commit

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

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

0 comments on commit 5b02e43

Please sign in to comment.