Skip to content

Commit d17912c

Browse files
PeterPetriknyalldawson
authored andcommitted
use mesh layer icon in browser panel
1 parent 0fb56ac commit d17912c

File tree

3 files changed

+242
-51
lines changed

3 files changed

+242
-51
lines changed

images/images.qrc

+1
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@
450450
<file>themes/default/mIconLineLayer.svg</file>
451451
<file>themes/default/mIconListView.svg</file>
452452
<file>themes/default/mIconLoading.gif</file>
453+
<file>themes/default/mIconMeshLayer.svg</file>
453454
<file>themes/default/mIconMssql.svg</file>
454455
<file>themes/default/mIconNoPyramid.svg</file>
455456
<file>themes/default/mIconOracle.svg</file>

images/themes/default/mIconMeshLayer.svg

+239-42
Loading

src/core/qgsdataitem.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ QIcon QgsLayerItem::iconRaster()
7676

7777
QIcon QgsLayerItem::iconMesh()
7878
{
79-
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconPointLayer.svg" ) );
79+
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconMeshLayer.svg" ) );
8080
}
8181

8282
QIcon QgsLayerItem::iconDefault()
@@ -626,29 +626,22 @@ QString QgsLayerItem::iconName( QgsLayerItem::LayerType layerType )
626626
{
627627
case Point:
628628
return QStringLiteral( "/mIconPointLayer.svg" );
629-
break;
630629
case Line:
631630
return QStringLiteral( "/mIconLineLayer.svg" );
632-
break;
633631
case Polygon:
634632
return QStringLiteral( "/mIconPolygonLayer.svg" );
635-
break;
636633
// TODO add a new icon for generic Vector layers
637634
case Vector :
638635
return QStringLiteral( "/mIconPolygonLayer.svg" );
639-
break;
640636
case TableLayer:
641637
case Table:
642638
return QStringLiteral( "/mIconTableLayer.svg" );
643-
break;
644639
case Raster:
645640
return QStringLiteral( "/mIconRaster.svg" );
646-
break;
647641
case Mesh:
648-
//TODO add icon!
642+
return QStringLiteral( "/mIconMeshLayer.svg" );
649643
default:
650644
return QStringLiteral( "/mIconLayer.png" );
651-
break;
652645
}
653646
}
654647

0 commit comments

Comments
 (0)