16 #ifndef QGSLAYERTREEUTILS_H
17 #define QGSLAYERTREEUTILS_H
19 #include <qnamespace.h>
39 static bool readOldLegend(
QgsLayerTreeGroup* root,
const QDomElement& legendElem );
41 static bool readOldLegendLayerOrder(
const QDomElement& legendElem,
bool& hasCustomOrder, QStringList& order );
43 static QDomElement writeOldLegend( QDomDocument& doc,
QgsLayerTreeGroup* root,
bool hasCustomOrder,
const QStringList& order );
46 static QString checkStateToXml( Qt::CheckState state );
48 static Qt::CheckState checkStateFromXml( QString txt );
51 static bool layersEditable(
const QList<QgsLayerTreeLayer*>& layerNodes );
53 static bool layersModified(
const QList<QgsLayerTreeLayer*>& layerNodes );
66 #endif // QGSLAYERTREEUTILS_H