Skip to content

Commit ffaa40e

Browse files
committedJan 23, 2017
Refactor properties
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.
1 parent 90e80c1 commit ffaa40e

File tree

74 files changed

+2066
-2676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2066
-2676
lines changed
 

‎python/core/composer/qgscomposerutils.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class QgsComposerUtils
114114
* @note this method was added in version 3.0
115115
* @see readDataDefinedPropertyMap
116116
*/
117-
static QgsAbstractProperty* readOldDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property, const QDomElement &ddElem ) /Factory/;
117+
static QgsProperty readOldDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property, const QDomElement &ddElem );
118118

119119
/** Returns a font where size is set in pixels and the size has been upscaled with FONT_WORKAROUND_SCALE
120120
* to workaround QT font rendering bugs

‎python/core/core.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
%Include qgsprojectversion.sip
121121
%Include qgsproperty.sip
122122
%Include qgspropertycollection.sip
123+
%Include qgspropertytransformer.sip
123124
%Include qgsprovidermetadata.sip
124125
%Include qgsproviderregistry.sip
125126
%Include qgspythonrunner.sip

0 commit comments

Comments
 (0)
Please sign in to comment.