1616#include " qgsmaplayeractionregistry.h"
1717
1818
19- QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, Targets targets )
20- : QAction( name, parent )
19+ QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, Targets targets, QIcon icon )
20+ : QAction( icon, name, parent )
2121 , mSingleLayer( false )
2222 , mActionLayer( 0 )
2323 , mSpecificLayerType( false )
@@ -26,8 +26,8 @@ QgsMapLayerAction::QgsMapLayerAction( QString name, QObject* parent, Targets tar
2626}
2727
2828/* *Creates a map layer action which can run only on a specific layer*/
29- QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, QgsMapLayer* layer, Targets targets )
30- : QAction( name, parent )
29+ QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, QgsMapLayer* layer , Targets targets, QIcon icon )
30+ : QAction( icon, name, parent )
3131 , mSingleLayer( true )
3232 , mActionLayer( layer )
3333 , mSpecificLayerType( false )
@@ -36,8 +36,8 @@ QgsMapLayerAction::QgsMapLayerAction( QString name, QObject* parent, QgsMapLayer
3636}
3737
3838/* *Creates a map layer action which can run on a specific type of layer*/
39- QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, QgsMapLayer::LayerType layerType, Targets targets )
40- : QAction( name, parent )
39+ QgsMapLayerAction::QgsMapLayerAction ( QString name, QObject* parent, QgsMapLayer::LayerType layerType, Targets targets, QIcon icon )
40+ : QAction( icon, name, parent )
4141 , mSingleLayer( false )
4242 , mActionLayer( 0 )
4343 , mSpecificLayerType( true )
0 commit comments