Skip to content

Commit

Permalink
Refactor properties
Browse files Browse the repository at this point in the history
Remove QgsAbstractProperty and subclasses, and instead use a single
QgsProperty class which covers the use of QgsAbstractProperty
and its subclasses. This simplifies the API and avoids pointer
handling. QgsProperty is implicitly shared for memory efficiency
and inexpensive copies.
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent 90e80c1 commit ffaa40e
Show file tree
Hide file tree
Showing 74 changed files with 2,066 additions and 2,676 deletions.
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposerutils.sip
Expand Up @@ -114,7 +114,7 @@ class QgsComposerUtils
* @note this method was added in version 3.0
* @see readDataDefinedPropertyMap
*/
static QgsAbstractProperty* readOldDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property, const QDomElement &ddElem ) /Factory/;
static QgsProperty readOldDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property, const QDomElement &ddElem );

/** Returns a font where size is set in pixels and the size has been upscaled with FONT_WORKAROUND_SCALE
* to workaround QT font rendering bugs
Expand Down
1 change: 1 addition & 0 deletions python/core/core.sip
Expand Up @@ -120,6 +120,7 @@
%Include qgsprojectversion.sip
%Include qgsproperty.sip
%Include qgspropertycollection.sip
%Include qgspropertytransformer.sip
%Include qgsprovidermetadata.sip
%Include qgsproviderregistry.sip
%Include qgspythonrunner.sip
Expand Down

0 comments on commit ffaa40e

Please sign in to comment.