diff --git a/python/core/qgsattributeaction.sip b/python/core/qgsattributeaction.sip index be5bb8223fa0..649a8aefce6c 100644 --- a/python/core/qgsattributeaction.sip +++ b/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 );