QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Functions
qgslayertreeutils.cpp File Reference
#include "qgslayertreeutils.h"
#include "qgslayertree.h"
#include "qgsvectorlayer.h"
#include "qgsproject.h"
#include <QDomElement>
Include dependency graph for qgslayertreeutils.cpp:

Go to the source code of this file.

Functions

static void _readOldLegendGroup (const QDomElement &groupElem, QgsLayerTreeGroup *parent)
 
static void _readOldLegendLayer (const QDomElement &layerElem, QgsLayerTreeGroup *parent)
 
static bool _readOldLegendLayerOrderGroup (const QDomElement &groupElem, QMap< int, QString > &layerIndexes)
 
static QDomElement _writeOldLegendGroup (QDomDocument &doc, QgsLayerTreeGroup *nodeGroup, bool hasCustomOrder, const QStringList &order)
 
static void _writeOldLegendGroupChildren (QDomDocument &doc, QDomElement &groupElem, QgsLayerTreeGroup *nodeGroup, bool hasCustomOrder, const QStringList &order)
 
static QDomElement _writeOldLegendLayer (QDomDocument &doc, QgsLayerTreeLayer *nodeLayer, bool hasCustomOrder, const QStringList &order)
 

Function Documentation

◆ _readOldLegendGroup()

static void _readOldLegendGroup ( const QDomElement groupElem,
QgsLayerTreeGroup parent 
)
static

Definition at line 209 of file qgslayertreeutils.cpp.

◆ _readOldLegendLayer()

static void _readOldLegendLayer ( const QDomElement layerElem,
QgsLayerTreeGroup parent 
)
static

Definition at line 240 of file qgslayertreeutils.cpp.

◆ _readOldLegendLayerOrderGroup()

static bool _readOldLegendLayerOrderGroup ( const QDomElement groupElem,
QMap< int, QString > &  layerIndexes 
)
static

Definition at line 55 of file qgslayertreeutils.cpp.

◆ _writeOldLegendGroup()

static QDomElement _writeOldLegendGroup ( QDomDocument doc,
QgsLayerTreeGroup nodeGroup,
bool  hasCustomOrder,
const QStringList order 
)
static

Definition at line 138 of file qgslayertreeutils.cpp.

◆ _writeOldLegendGroupChildren()

static void _writeOldLegendGroupChildren ( QDomDocument doc,
QDomElement groupElem,
QgsLayerTreeGroup nodeGroup,
bool  hasCustomOrder,
const QStringList order 
)
static

Definition at line 156 of file qgslayertreeutils.cpp.

◆ _writeOldLegendLayer()

static QDomElement _writeOldLegendLayer ( QDomDocument doc,
QgsLayerTreeLayer nodeLayer,
bool  hasCustomOrder,
const QStringList order 
)
static

Definition at line 108 of file qgslayertreeutils.cpp.