Skip to content

Commit cfa15ff

Browse files
author
Marco Hugentobler
committed
Add documentation for function QgsComposition::loadFromTemplate
1 parent 07696ab commit cfa15ff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python/core/qgscomposition.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ class QgsComposition: QGraphicsScene
107107
/**Reads settings from xml file*/
108108
bool readXML( const QDomElement& compositionElem, const QDomDocument& doc );
109109

110+
/**Load a template document
111+
@param doc template document
112+
@param substitutionMap map with text to replace. Text needs to be enclosed by brackets (e.g. '[text]' )*/
110113
bool loadFromTemplate( const QDomDocument& doc, QMap<QString, QString>* substitutionMap = 0, bool addUndoCommands = false );
111114

112115
/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)

src/core/composer/qgscomposition.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class CORE_EXPORT QgsComposition: public QGraphicsScene
153153
/**Reads settings from xml file*/
154154
bool readXML( const QDomElement& compositionElem, const QDomDocument& doc );
155155

156+
/**Load a template document
157+
@param doc template document
158+
@param substitutionMap map with text to replace. Text needs to be enclosed by brackets (e.g. '[text]' )*/
156159
bool loadFromTemplate( const QDomDocument& doc, QMap<QString, QString>* substitutionMap = 0, bool addUndoCommands = false );
157160

158161
/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)

0 commit comments

Comments
 (0)