mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
SIP update: expose QgsAttributeAction icon, iconPath and name
Fix #11458
This commit is contained in:
parent
5b9210b91d
commit
338e138be6
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user