25 , mLayerId( layer->id() )
27 , mVisible( Qt::Checked )
38 , mVisible( Qt::Checked )
45 , mLayerId( other.mLayerId )
46 , mLayerName( other.mLayerName )
48 , mVisible( other.mVisible )
98 if ( element.tagName() !=
"layer-tree-layer" )
101 QString layerID = element.attribute(
"id" );
102 QString
layerName = element.attribute(
"name" );
104 bool isExpanded = ( element.attribute(
"expanded",
"1" ) ==
"1" );
124 QDomDocument doc = parentElement.ownerDocument();
125 QDomElement elem = doc.createElement(
"layer-tree-layer" );
126 elem.setAttribute(
"id",
mLayerId );
127 elem.setAttribute(
"name",
layerName() );
129 elem.setAttribute(
"expanded",
mExpanded ?
"1" :
"0" );
133 parentElement.appendChild( elem );
162 if ( layerIds.contains(
mLayerId ) )