18#include "moc_qgsreport.cpp" 
   24  : QgsAbstractReportSection( nullptr )
 
   28QIcon QgsReport::icon()
 const 
   33QgsReport *QgsReport::clone()
 const 
   35  auto copy = std::make_unique< QgsReport >( mProject );
 
   36  copyCommonProperties( copy.get() );
 
   37  return copy.release();
 
   40void QgsReport::setName( 
const QString &name )
 
   43  emit nameChanged( mName );
 
   46QDomElement QgsReport::writeLayoutXml( QDomDocument &document, 
const QgsReadWriteContext &context )
 const 
   48  QDomElement element = document.createElement( QStringLiteral( 
"Report" ) );
 
   49  writeXml( element, document, context );
 
   50  element.setAttribute( QStringLiteral( 
"name" ), mName );
 
   54bool QgsReport::readLayoutXml( 
const QDomElement &layoutElement, 
const QDomDocument &document, 
const QgsReadWriteContext &context )
 
   56  const QDomNodeList sectionList = layoutElement.elementsByTagName( QStringLiteral( 
"Section" ) );
 
   57  if ( sectionList.count() > 0 )
 
   59    readXml( sectionList.at( 0 ).toElement(), document, context );
 
   61  setName( layoutElement.attribute( QStringLiteral( 
"name" ) ) );
 
   65void QgsReport::updateSettings()
 
   72  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,...
 
A container for the context for various read/write operations on objects.
 
An interface for classes which can visit style entity (e.g.