Skip to content

Commit

Permalink
Fix sip for QgsMapLayerActionRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 17, 2014
1 parent ab3ff17 commit 21c81d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions python/gui/qgsmaplayeractionregistry.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayeractionregistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayeractionregistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 21c81d6

Please sign in to comment.