Skip to content
Permalink
Browse files

Fix sip for QgsMapLayerActionRegistry

  • Loading branch information
m-kuhn committed Sep 17, 2014
1 parent ab3ff17 commit 21c81d6f512fa59f4bb4545c087a2bf5154008dd
@@ -25,9 +25,8 @@ class QgsMapLayerAction : QAction
/** True if action can run using the specified layer */
bool canRunUsingLayer( QgsMapLayer* layer ) const;

/** Triggers the action with the specified layer and feature. This also emits the triggeredForLayer( QgsMapLayer *)
* and triggered() slots */
void triggerForFeature( QgsMapLayer* layer, QgsFeature* feature );
/** Triggers the action with the specified layer and list of feature. */
void triggerForFeatures( QgsMapLayer* layer, QList<const QgsFeature*> featureList );

/** Triggers the action with the specified layer. This also emits the triggered() slot. */
void triggerForLayer( QgsMapLayer* layer );
@@ -37,8 +36,11 @@ class QgsMapLayerAction : QAction
const Targets& targets() const;

signals:
/** Triggered when action has been run for a specific list of features */
void triggeredForFeatures( QgsMapLayer* layer, QList<const QgsFeature*> featureList );

/** Triggered when action has been run for a specific feature */
void triggeredForFeature( QgsMapLayer* layer, QgsFeature* feature );
void triggeredForFeature( QgsMapLayer* layer, const QgsFeature* feature );

/** Triggered when action has been run for a specific layer */
void triggeredForLayer( QgsMapLayer* layer );
@@ -79,7 +79,7 @@ void QgsMapLayerAction::triggerForFeatures( QgsMapLayer* layer, QList<const QgsF

void QgsMapLayerAction::triggerForFeature( QgsMapLayer* layer, const QgsFeature* feature )
{
emit triggeredForFeature( layer, feature );
emit triggeredForFeature( layer, *feature );
}

void QgsMapLayerAction::triggerForLayer( QgsMapLayer* layer )
@@ -77,7 +77,7 @@ class GUI_EXPORT QgsMapLayerAction : public QAction
void triggeredForFeatures( QgsMapLayer* layer, QList<const QgsFeature*> featureList );

/** Triggered when action has been run for a specific feature */
void triggeredForFeature( QgsMapLayer* layer, const QgsFeature* feature );
void triggeredForFeature( QgsMapLayer* layer, const QgsFeature& feature );

/** Triggered when action has been run for a specific layer */
void triggeredForLayer( QgsMapLayer* layer );

0 comments on commit 21c81d6

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