Skip to content
Permalink
Browse files

[processing] Allow providers to return path to SVG icon

  • Loading branch information
nyalldawson committed Jan 11, 2017
1 parent b71019d commit bf484dafa809f32adc44d3b9f8ad501be8dec5b5
@@ -20,9 +20,16 @@ class QgsProcessingProvider

/**
* Returns an icon for the provider.
* @see svgIcon()
*/
virtual QIcon icon() const;

/**
* Returns a path to an SVG version of the provider's icon.
* @see icon()
*/
virtual QString svgIconPath() const;

/**
* Returns the unique provider id, used for identifying the provider. This string
* should be a unique, short, character only string, eg "qgis" or "gdal". This
@@ -20,5 +20,10 @@

QIcon QgsProcessingProvider::icon() const
{
return QgsApplication::getThemeIcon( "/alg.svg" );
return QgsApplication::getThemeIcon( "/processingAlgorithm.svg" );
}

QString QgsProcessingProvider::svgIconPath() const
{
return QgsApplication::iconPath( "processingAlgorithm.svg" );
}
@@ -48,9 +48,16 @@ class CORE_EXPORT QgsProcessingProvider

/**
* Returns an icon for the provider.
* @see svgIcon()
*/
virtual QIcon icon() const;

/**
* Returns a path to an SVG version of the provider's icon.
* @see icon()
*/
virtual QString svgIconPath() const;

/**
* Returns the unique provider id, used for identifying the provider. This string
* should be a unique, short, character only string, eg "qgis" or "gdal". This

0 comments on commit bf484da

Please sign in to comment.
You can’t perform that action at this time.