Skip to content

Commit

Permalink
SIP update: expose QgsAttributeAction icon, iconPath and name
Browse files Browse the repository at this point in the history
Fix #11458
  • Loading branch information
m-kuhn committed Oct 21, 2014
1 parent 5b9210b commit 338e138
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/core/qgsattributeaction.sip
Expand Up @@ -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;

Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit 338e138

Please sign in to comment.