QgsMapLayerActionRegistry class
This class tracks map layer actions.
Contents
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through QgsGui::
Constructors, destructors, conversion operators
- QgsMapLayerActionRegistry(QObject* parent = nullptr)
- Constructor for QgsMapLayerActionRegistry.
Public functions
- void addMapLayerAction(QgsMapLayerAction* action)
- Adds a map layer action to the registry.
- auto defaultActionForLayer(QgsMapLayer* layer) -> QgsMapLayerAction*
- Returns the default action for a layer.
-
auto mapLayerActions(QgsMapLayer* layer,
QgsMapLayerAction::Targets targets = QgsMapLayerAction::
AllActions) -> QList<QgsMapLayerAction*> - Returns the map layer actions which can run on the specified layer.
- auto removeMapLayerAction(QgsMapLayerAction* action) -> bool
- Removes a map layer action from the registry.
- void setDefaultActionForLayer(QgsMapLayer* layer, QgsMapLayerAction* action)
- Sets the default action for a layer.
Signals
- void changed()
- Triggered when an action is added or removed from the registry.
Function documentation
QgsMapLayerActionRegistry:: QgsMapLayerActionRegistry(QObject* parent = nullptr)
Constructor for QgsMapLayerActionRegistry.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through QgsGui::