Navigation Menu

Skip to content

Commit

Permalink
Expand documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 9, 2017
1 parent 328eabf commit cbd7973
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions python/core/qgsproperty.sip
Expand Up @@ -107,13 +107,17 @@ class QgsPropertyDefinition

QString origin() const;
%Docstring
Returns the origin of the property
Returns the origin of the property. For example, a PAL property has an
origin set to "labeling" while a diagram property has an origin set to
"diagram".
:rtype: str
%End

void setOrigin( const QString &origin );
%Docstring
Sets origin of the property
Sets the origin of the property. For example, a PAL property has an
origin set to "labeling" while a diagram property has an origin set to
"diagram".
%End

QString description() const;
Expand Down
8 changes: 6 additions & 2 deletions src/core/qgsproperty.h
Expand Up @@ -143,12 +143,16 @@ class CORE_EXPORT QgsPropertyDefinition
void setName( const QString &name ) { mName = name; }

/**
* Returns the origin of the property
* Returns the origin of the property. For example, a PAL property has an
* origin set to "labeling" while a diagram property has an origin set to
* "diagram".
*/
QString origin() const { return mOrigin; }

/**
* Sets origin of the property
* Sets the origin of the property. For example, a PAL property has an
* origin set to "labeling" while a diagram property has an origin set to
* "diagram".
*/
void setOrigin( const QString &origin ) { mOrigin = origin; }

Expand Down

0 comments on commit cbd7973

Please sign in to comment.