Skip to content


use mesh layer icon in browser panel
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed Sep 10, 2018
1 parent 0fb56ac commit d17912c
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 51 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@
Expand Down
281 changes: 239 additions & 42 deletions images/themes/default/mIconMeshLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions src/core/qgsdataitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ QIcon QgsLayerItem::iconRaster()

QIcon QgsLayerItem::iconMesh()
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconPointLayer.svg" ) );
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconMeshLayer.svg" ) );

QIcon QgsLayerItem::iconDefault()
Expand Down Expand Up @@ -626,29 +626,22 @@ QString QgsLayerItem::iconName( QgsLayerItem::LayerType layerType )
case Point:
return QStringLiteral( "/mIconPointLayer.svg" );
case Line:
return QStringLiteral( "/mIconLineLayer.svg" );
case Polygon:
return QStringLiteral( "/mIconPolygonLayer.svg" );
// TODO add a new icon for generic Vector layers
case Vector :
return QStringLiteral( "/mIconPolygonLayer.svg" );
case TableLayer:
case Table:
return QStringLiteral( "/mIconTableLayer.svg" );
case Raster:
return QStringLiteral( "/mIconRaster.svg" );
case Mesh:
//TODO add icon!
return QStringLiteral( "/mIconMeshLayer.svg" );
return QStringLiteral( "/mIconLayer.png" );

Expand Down

0 comments on commit d17912c

Please sign in to comment.