23 : QgsAbstractReportSection( nullptr )
27 QIcon QgsReport::icon()
const
32 QgsReport *QgsReport::clone()
const
34 std::unique_ptr< QgsReport > copy = std::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 );
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
@ Report
Report (QgsReport)
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The class is used as a container of context for various read/write operations on other objects.
An interface for classes which can visit style entity (e.g.