Skip to content

Commit

Permalink
[processing] Fix missing icon for polygon to lines algoritghm
Browse files Browse the repository at this point in the history
The icon went missing when porting the algorithm from
python to a native
  • Loading branch information
nirvn authored and nyalldawson committed Nov 20, 2019
1 parent e0ffc65 commit 48ab44c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analysis/processing/qgsalgorithmpolygonstolines.h
Expand Up @@ -22,6 +22,7 @@

#include "qgis_sip.h"
#include "qgsprocessingalgorithm.h"
#include "qgsapplication.h"

///@cond PRIVATE

Expand All @@ -34,6 +35,8 @@ class QgsPolygonsToLinesAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsPolygonsToLinesAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmPolygonToLine.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmPolygonToLine.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down

0 comments on commit 48ab44c

Please sign in to comment.