16 #ifndef QGSLAYERTREEUTILS_H
17 #define QGSLAYERTREEUTILS_H
19 #include <qnamespace.h>
40 static bool readOldLegend(
QgsLayerTreeGroup* root,
const QDomElement& legendElem );
42 static bool readOldLegendLayerOrder(
const QDomElement& legendElem,
bool& hasCustomOrder, QStringList& order );
44 static QDomElement writeOldLegend( QDomDocument& doc,
QgsLayerTreeGroup* root,
bool hasCustomOrder,
const QStringList& order );
47 static QString checkStateToXml( Qt::CheckState state );
49 static Qt::CheckState checkStateFromXml( QString txt );
52 static bool layersEditable(
const QList<QgsLayerTreeLayer*>& layerNodes );
54 static bool layersModified(
const QList<QgsLayerTreeLayer*>& layerNodes );
69 #endif // QGSLAYERTREEUTILS_H