Skip to content
Permalink
Browse files

show mesh layer icon in layer tree #20722

(cherry picked from commit 3d0cf5c)
  • Loading branch information
PeterPetrik authored and nyalldawson committed Jan 25, 2019
1 parent ea9ef3a commit 5b02e43e1b9f412672a6fef09f16ec6ff111399e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/layertree/qgslayertreemodel.cpp
@@ -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;

0 comments on commit 5b02e43

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