Skip to content
Permalink
Browse files

show mesh layer icon in layer tree #20722

  • Loading branch information
PeterPetrik authored and nyalldawson committed Jan 28, 2019
1 parent 1b4a913 commit 3d0cf5cbb2edce142ae2d6b14d50580bbd678152
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/layertree/qgslayertreemodel.cpp
@@ -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;

0 comments on commit 3d0cf5c

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