Skip to content

Commit 3d0cf5c

Browse files
PeterPetriknyalldawson
authored andcommittedJan 28, 2019
show mesh layer icon in layer tree #20722
1 parent 1b4a913 commit 3d0cf5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/core/layertree/qgslayertreemodel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
199199
{
200200
return QgsLayerItem::iconRaster();
201201
}
202+
else if ( layer->type() == QgsMapLayer::MeshLayer )
203+
{
204+
return QgsLayerItem::iconMesh();
205+
}
202206

203207
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
204208
QIcon icon;

0 commit comments

Comments
 (0)
Please sign in to comment.