Skip to content

Commit 338e138

Browse files
committedOct 21, 2014
SIP update: expose QgsAttributeAction icon, iconPath and name
Fix #11458
1 parent 5b9210b commit 338e138

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎python/core/qgsattributeaction.sip

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ class QgsAction
2020
//! The name of the action
2121
QString name() const;
2222

23+
//! The path to the icon
24+
const QString iconPath() const;
25+
26+
//! The icon
27+
const QIcon icon() const;
28+
2329
//! The action
2430
QString action() const;
2531

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

66+
/** Add an action with the given name and action details.
67+
* Will happily have duplicate names and actions. If
68+
* capture is true, when running the action using doAction(),
69+
* any stdout from the process will be captured and displayed in a
70+
* dialog box.
71+
*/
72+
void addAction( QgsAction::ActionType type, QString name, QString action, const QString& icon, bool capture = false );
73+
6074
//! Remove an action at given index
6175
void removeAction( int index );
6276

0 commit comments

Comments
 (0)
Please sign in to comment.