23 : QgsAbstractReportSection( nullptr )
27 QIcon QgsReport::icon()
const
32 QgsReport *QgsReport::clone()
const
34 std::unique_ptr< QgsReport > copy = qgis::make_unique< QgsReport >( mProject );
35 copyCommonProperties( copy.get() );
36 return copy.release();
39 void QgsReport::setName(
const QString &name )
42 emit nameChanged( mName );
45 QDomElement QgsReport::writeLayoutXml( QDomDocument &document,
const QgsReadWriteContext &context )
const
47 QDomElement element = document.createElement( QStringLiteral(
"Report" ) );
48 writeXml( element, document, context );
49 element.setAttribute( QStringLiteral(
"name" ), mName );
53 bool QgsReport::readLayoutXml(
const QDomElement &layoutElement,
const QDomDocument &document,
const QgsReadWriteContext &context )
55 const QDomNodeList sectionList = layoutElement.elementsByTagName( QStringLiteral(
"Section" ) );
56 if ( sectionList.count() > 0 )
58 readXml( sectionList.at( 0 ).toElement(), document, context );
60 setName( layoutElement.attribute( QStringLiteral(
"name" ) ) );
64 void QgsReport::updateSettings()
71 return accept( visitor );