Skip to content

Commit

Permalink
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 @@
<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>
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" );
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;
}
}

Expand Down

0 comments on commit d17912c

Please sign in to comment.