21 #include <QDomElement>
22 #include <QStringList>
34 , mNodeType( other.mNodeType )
36 , mExpanded( other.mExpanded )
37 , mProperties( other.mProperties )
39 QList<QgsLayerTreeNode*> clonedChildren;
41 clonedChildren << child->
clone();
53 if ( element.tagName() ==
"layer-tree-group" )
55 else if ( element.tagName() ==
"layer-tree-layer" )
107 QDomDocument doc( element.ownerDocument() );
113 if ( nodes.count() == 0 )
118 Q_ASSERT( node->
mParent == 0 );
122 if ( index < 0 || index >=
mChildren.count() )
125 int indexTo = index + nodes.count() - 1;
127 for (
int i = 0; i < nodes.count(); ++i )
145 if ( from < 0 || count <= 0 )
148 int to = from + count - 1;
152 while ( --count >= 0 )