Add copy constructor dox

This commit is contained in:
Matthias Kuhn 2018-08-24 18:01:47 +02:00
parent 79f766afef
commit 2a31d38613
2 changed files with 19 additions and 0 deletions

View File

@ -36,7 +36,14 @@ class QgsRelation
Default constructor. Creates an invalid relation.
%End
~QgsRelation();
QgsRelation( const QgsRelation &other );
%Docstring
Copies a relation.
This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
changed.
%End
static QgsRelation createFromXml( const QDomNode &node, QgsReadWriteContext &context );
%Docstring

View File

@ -95,7 +95,19 @@ class CORE_EXPORT QgsRelation
*/
QgsRelation();
~QgsRelation();
/**
* Copies a relation.
* This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
* changed.
*/
QgsRelation( const QgsRelation &other );
/**
* Copies a relation.
* This makes a shallow copy, relations are implicitly shared and only duplicated when the copy is
* changed.
*/
QgsRelation &operator=( const QgsRelation &other );
/**