|
static Qt::CheckState | checkStateFromXml (const QString &txt) |
| Convert QString to Qt::CheckState. More...
|
|
static QString | checkStateToXml (Qt::CheckState state) |
| Convert Qt::CheckState to QString. More...
|
|
static QSet< QgsMapLayer * > | collectMapLayersRecursive (const QList< QgsLayerTreeNode * > &nodes) |
| Returns map layers from the given list of layer tree nodes. More...
|
|
static int | countMapLayerInTree (QgsLayerTreeNode *tree, QgsMapLayer *layer) |
| Returns how many occurrences of a map layer are there in a layer tree. More...
|
|
static QgsLayerTreeGroup * | firstGroupWithoutCustomProperty (QgsLayerTreeGroup *group, const QString &property) |
| Returns the first parent which doesn't have the given custom property or the group itself if it doesn't hold the property. More...
|
|
static bool | hasLegendFilterExpression (const QgsLayerTreeGroup &group) |
| Test if one of the layers in a group has an expression filter. More...
|
|
static QgsLayerTreeLayer * | insertLayerBelow (QgsLayerTreeGroup *group, const QgsMapLayer *refLayer, QgsMapLayer *layerToInsert) |
| Insert a QgsMapLayer just below another one. More...
|
|
static QStringList | invisibleLayerList (QgsLayerTreeNode *node) |
| Gets invisible layers. More...
|
|
static bool | layersEditable (const QList< QgsLayerTreeLayer * > &layerNodes, bool ignoreLayersWhichCannotBeToggled=false) |
| Returns true if any of the specified layers is editable. More...
|
|
static bool | layersModified (const QList< QgsLayerTreeLayer * > &layerNodes) |
| Returns true if any of the layers is modified. More...
|
|
static QString | legendFilterByExpression (const QgsLayerTreeLayer &layer, bool *enabled=nullptr) |
| Returns the expression filter of a legend layer. More...
|
|
static bool | readOldLegend (QgsLayerTreeGroup *root, const QDomElement &legendElem) |
| Try to load layer tree from. More...
|
|
static bool | readOldLegendLayerOrder (const QDomElement &legendElem, bool &hasCustomOrder, QStringList &order) |
| Try to load custom layer order from. More...
|
|
static void | removeInvalidLayers (QgsLayerTreeGroup *group) |
| Removes layer nodes that refer to invalid layers. More...
|
|
static void | replaceChildrenOfEmbeddedGroups (QgsLayerTreeGroup *group) |
| Remove subtree of embedded groups and replaces it with a custom property embedded-visible-layers. More...
|
|
static void | setLegendFilterByExpression (QgsLayerTreeLayer &layer, const QString &expr, bool enabled=true) |
| Sets the expression filter of a legend layer. More...
|
|
static void | storeOriginalLayersProperties (QgsLayerTreeGroup *group, const QDomDocument *doc) |
| Stores in a layer's originalXmlProperties the layer properties information. More...
|
|
static void | updateEmbeddedGroupsProjectPath (QgsLayerTreeGroup *group, const QgsProject *project) |
| Updates an embedded group from a project. More...
|
|
static QDomElement | writeOldLegend (QDomDocument &doc, QgsLayerTreeGroup *root, bool hasCustomOrder, const QList< QgsMapLayer * > &order) |
| Returns. More...
|
|