Skip to content
Permalink
Browse files

SIP update: expose QgsAttributeAction icon, iconPath and name

Fix #11458
  • Loading branch information
m-kuhn committed Oct 21, 2014
1 parent 5b9210b commit 338e138be6db9dc81b8fc34a7352abd5c9cad7c0
Showing with 14 additions and 0 deletions.
  1. +14 −0 python/core/qgsattributeaction.sip
@@ -20,6 +20,12 @@ class QgsAction
//! The name of the action
QString name() const;

//! The path to the icon
const QString iconPath() const;

//! The icon
const QIcon icon() const;

//! The action
QString action() const;

@@ -57,6 +63,14 @@ class QgsAttributeAction
// dialog box.
void addAction( QgsAction::ActionType type, QString name, QString action, bool capture = false );

/** Add an action with the given name and action details.
* Will happily have duplicate names and actions. If
* capture is true, when running the action using doAction(),
* any stdout from the process will be captured and displayed in a
* dialog box.
*/
void addAction( QgsAction::ActionType type, QString name, QString action, const QString& icon, bool capture = false );

//! Remove an action at given index
void removeAction( int index );

0 comments on commit 338e138

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