mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-14 00:08:51 -05:00
[processing] Allow providers to return path to SVG icon
This commit is contained in:
parent
b71019dfda
commit
bf484dafa8
@ -20,9 +20,16 @@ class QgsProcessingProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an icon for the provider.
|
* Returns an icon for the provider.
|
||||||
|
* @see svgIcon()
|
||||||
*/
|
*/
|
||||||
virtual QIcon icon() const;
|
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
|
* 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
|
* should be a unique, short, character only string, eg "qgis" or "gdal". This
|
||||||
|
|||||||
@ -20,5 +20,10 @@
|
|||||||
|
|
||||||
QIcon QgsProcessingProvider::icon() const
|
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.
|
* Returns an icon for the provider.
|
||||||
|
* @see svgIcon()
|
||||||
*/
|
*/
|
||||||
virtual QIcon icon() const;
|
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
|
* 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
|
* should be a unique, short, character only string, eg "qgis" or "gdal". This
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user