38 QDomElement frameElem = doc.createElement(
"ComposerFrame" );
39 frameElem.setAttribute(
"sectionX", QString::number(
mSection.x() ) );
40 frameElem.setAttribute(
"sectionY", QString::number(
mSection.y() ) );
41 frameElem.setAttribute(
"sectionWidth", QString::number(
mSection.width() ) );
42 frameElem.setAttribute(
"sectionHeight", QString::number(
mSection.height() ) );
43 elem.appendChild( frameElem );
49 double x = itemElem.attribute(
"sectionX" ).toDouble();
50 double y = itemElem.attribute(
"sectionY" ).toDouble();
51 double width = itemElem.attribute(
"sectionWidth" ).toDouble();
52 double height = itemElem.attribute(
"sectionHeight" ).toDouble();
53 mSection = QRectF( x, y, width, height );
54 QDomElement composerItem = itemElem.firstChildElement(
"ComposerItem" );
55 if ( composerItem.isNull() )
59 return _readXML( composerItem, doc );
64 Q_UNUSED( itemStyle );