Skip to content
Permalink
Browse files
use mesh layer icon in browser panel
  • Loading branch information
PeterPetrik authored and nyalldawson committed Sep 10, 2018
1 parent 0fb56ac commit d17912c8f767f7febe13f14919327a7bf6a14bb8
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 51 deletions.
@@ -450,6 +450,7 @@
<file>themes/default/mIconLineLayer.svg</file>
<file>themes/default/mIconListView.svg</file>
<file>themes/default/mIconLoading.gif</file>
<file>themes/default/mIconMeshLayer.svg</file>
<file>themes/default/mIconMssql.svg</file>
<file>themes/default/mIconNoPyramid.svg</file>
<file>themes/default/mIconOracle.svg</file>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -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()
@@ -626,29 +626,22 @@ QString QgsLayerItem::iconName( QgsLayerItem::LayerType layerType )
{
case Point:
return QStringLiteral( "/mIconPointLayer.svg" );
break;
case Line:
return QStringLiteral( "/mIconLineLayer.svg" );
break;
case Polygon:
return QStringLiteral( "/mIconPolygonLayer.svg" );
break;
// TODO add a new icon for generic Vector layers
case Vector :
return QStringLiteral( "/mIconPolygonLayer.svg" );
break;
case TableLayer:
case Table:
return QStringLiteral( "/mIconTableLayer.svg" );
break;
case Raster:
return QStringLiteral( "/mIconRaster.svg" );
break;
case Mesh:
//TODO add icon!
return QStringLiteral( "/mIconMeshLayer.svg" );
default:
return QStringLiteral( "/mIconLayer.png" );
break;
}
}

0 comments on commit d17912c

Please sign in to comment.