Skip to content

Commit 5b02e43

Browse files
PeterPetriknyalldawson
authored andcommittedJan 29, 2019
show mesh layer icon in layer tree #20722
(cherry picked from commit 3d0cf5c)
1 parent ea9ef3a commit 5b02e43

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
@@ -198,6 +198,10 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
198198
{
199199
return QgsLayerItem::iconRaster();
200200
}
201+
else if ( layer->type() == QgsMapLayer::MeshLayer )
202+
{
203+
return QgsLayerItem::iconMesh();
204+
}
201205

202206
QgsVectorLayer *vlayer = dynamic_cast<QgsVectorLayer *>( layer );
203207
QIcon icon;

0 commit comments

Comments
 (0)
Please sign in to comment.