Skip to content

Commit

Permalink
Add an icon for annotation layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 6, 2021
1 parent 7b11b53 commit 0896d59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -930,6 +930,7 @@
<file>themes/default/mIconGps.svg</file>
<file>themes/default/mActionNewGpx.svg</file>
<file>themes/default/mActionAddGpsLayer.svg</file>
<file>themes/default/mIconAnnotationLayer.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/mIconAnnotationLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/core/qgsiconutils.cpp
Expand Up @@ -160,8 +160,10 @@ QIcon QgsIconUtils::iconForLayerType( QgsMapLayerType type )
case QgsMapLayerType::VectorLayer:
return QgsIconUtils::iconGeometryCollection();

case QgsMapLayerType::PluginLayer:
case QgsMapLayerType::AnnotationLayer:
return QgsApplication::getThemeIcon( QStringLiteral( "/mIconAnnotationLayer.svg" ) );

case QgsMapLayerType::PluginLayer:
break;
}
return QIcon();
Expand Down

0 comments on commit 0896d59

Please sign in to comment.