Skip to content

Commit 21c81d6

Browse files
committedSep 17, 2014
Fix sip for QgsMapLayerActionRegistry
1 parent ab3ff17 commit 21c81d6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
 

‎python/gui/qgsmaplayeractionregistry.sip

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ class QgsMapLayerAction : QAction
2525
/** True if action can run using the specified layer */
2626
bool canRunUsingLayer( QgsMapLayer* layer ) const;
2727

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

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

3938
signals:
39+
/** Triggered when action has been run for a specific list of features */
40+
void triggeredForFeatures( QgsMapLayer* layer, QList<const QgsFeature*> featureList );
41+
4042
/** Triggered when action has been run for a specific feature */
41-
void triggeredForFeature( QgsMapLayer* layer, QgsFeature* feature );
43+
void triggeredForFeature( QgsMapLayer* layer, const QgsFeature* feature );
4244

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

‎src/gui/qgsmaplayeractionregistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void QgsMapLayerAction::triggerForFeatures( QgsMapLayer* layer, QList<const QgsF
7979

8080
void QgsMapLayerAction::triggerForFeature( QgsMapLayer* layer, const QgsFeature* feature )
8181
{
82-
emit triggeredForFeature( layer, feature );
82+
emit triggeredForFeature( layer, *feature );
8383
}
8484

8585
void QgsMapLayerAction::triggerForLayer( QgsMapLayer* layer )

‎src/gui/qgsmaplayeractionregistry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class GUI_EXPORT QgsMapLayerAction : public QAction
7777
void triggeredForFeatures( QgsMapLayer* layer, QList<const QgsFeature*> featureList );
7878

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.