44    static bool readOldLegend( 
QgsLayerTreeGroup *root, 
const QDomElement &legendElem );
 
   46    static bool readOldLegendLayerOrder( 
const QDomElement &legendElem, 
bool &hasCustomOrder, QStringList &order );
 
   48    static QDomElement writeOldLegend( QDomDocument &doc, 
QgsLayerTreeGroup *root, 
bool hasCustomOrder, 
const QList<QgsMapLayer *> &order );
 
   51    static QString checkStateToXml( Qt::CheckState state );
 
   53    static Qt::CheckState checkStateFromXml( 
const QString &txt );
 
   61    static bool layersEditable( 
const QList<QgsLayerTreeLayer *> &layerNodes, 
bool ignoreLayersWhichCannotBeToggled = 
false );
 
   64    static bool layersModified( 
const QList<QgsLayerTreeLayer *> &layerNodes );
 
   73    static void storeOriginalLayersProperties( 
QgsLayerTreeGroup *group, 
const QDomDocument *doc );
 
   87    static void setLegendFilterByExpression( 
QgsLayerTreeLayer &layer, 
const QString &expr, 
bool enabled = 
true );
 
   89    static QString legendFilterByExpression( 
const QgsLayerTreeLayer &layer, 
bool *enabled = 
nullptr );
 
  107    static QSet<QgsMapLayer *> collectMapLayersRecursive( 
const QList<QgsLayerTreeNode *> &nodes );