mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Add layer tree group name and sort key to QgsProcessingContext::LayerDetails
This commit is contained in:
parent
26ce45d6d5
commit
8682a20150
@ -237,6 +237,10 @@ Default constructor
|
||||
|
||||
QString outputName;
|
||||
|
||||
QString groupName;
|
||||
|
||||
int layerSortKey;
|
||||
|
||||
QgsProcessingUtils::LayerHint layerTypeHint;
|
||||
|
||||
QgsProcessingLayerPostProcessorInterface *postProcessor() const;
|
||||
|
||||
@ -298,6 +298,22 @@ class CORE_EXPORT QgsProcessingContext
|
||||
*/
|
||||
QString outputName;
|
||||
|
||||
/**
|
||||
* Optional name for a layer tree group under which to place the layer when loading it into a project.
|
||||
*
|
||||
* \since QGIS 3.32
|
||||
*/
|
||||
QString groupName;
|
||||
|
||||
/**
|
||||
* Optional sorting key for sorting output layers when loading them into a project.
|
||||
*
|
||||
* Layers with a greater sort key will be placed over layers with a lesser sort key.
|
||||
*
|
||||
* \since QGIS 3.32
|
||||
*/
|
||||
int layerSortKey = 0;
|
||||
|
||||
/**
|
||||
* Layer type hint.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user