27 connect( project, SIGNAL(
readProject(
const QDomDocument& ) ), SLOT(
readProject(
const QDomDocument& ) ) );
90 bool containsField =
false;
100 if ( !containsField )
105 relations.append( rel );
125 relations.append( rel );
136 QDomNodeList nodes = doc.elementsByTagName(
"relations" );
139 QDomNode node = nodes.item( 0 );
140 QDomNodeList relationNodes = node.childNodes();
141 int relCount = relationNodes.count();
142 for (
int i = 0; i < relCount; ++i )
149 QgsDebugMsg(
"No relations data present in this document" );
157 QDomNodeList nl = doc.elementsByTagName(
"qgis" );
160 QgsDebugMsg(
"Unable to find qgis element in project file" );
163 QDomNode qgisNode = nl.item( 0 );
165 QDomElement relationsNode = doc.createElement(
"relations" );
166 qgisNode.appendChild( relationsNode );
170 relation.
writeXML( relationsNode, doc );