SIP update: expose QgsAttributeAction icon, iconPath and name

Fix #11458
This commit is contained in:
Matthias Kuhn 2014-10-21 15:31:14 +02:00
parent 5b9210b91d
commit 338e138be6

View File

@ -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 );