Add layer tree group name and sort key to QgsProcessingContext::LayerDetails

This commit is contained in:
Nyall Dawson 2023-05-03 14:14:15 +10:00
parent 26ce45d6d5
commit 8682a20150
2 changed files with 20 additions and 0 deletions

View File

@ -237,6 +237,10 @@ Default constructor
QString outputName;
QString groupName;
int layerSortKey;
QgsProcessingUtils::LayerHint layerTypeHint;
QgsProcessingLayerPostProcessorInterface *postProcessor() const;

View File

@ -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.
*