Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add layer tree group name and sort key to QgsProcessingContext::Layer…
…Details
  • Loading branch information
nyalldawson committed May 3, 2023
1 parent 26ce45d commit 8682a20
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Expand Up @@ -237,6 +237,10 @@ Default constructor

QString outputName;

QString groupName;

int layerSortKey;

QgsProcessingUtils::LayerHint layerTypeHint;

QgsProcessingLayerPostProcessorInterface *postProcessor() const;
Expand Down
16 changes: 16 additions & 0 deletions src/core/processing/qgsprocessingcontext.h
Expand Up @@ -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.
*
Expand Down

0 comments on commit 8682a20

Please sign in to comment.