Skip to content
Permalink
Browse files
Allow setting diagram properties collection
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent 83139cc commit a4ef9ad89c1f9974c01aa1cd233906646ab0da9a
Showing with 18 additions and 0 deletions.
  1. +9 −0 python/core/qgsdiagramrenderer.sip
  2. +9 −0 src/core/qgsdiagramrenderer.h
@@ -205,14 +205,23 @@ class QgsDiagramLayerSettings

/** Returns a reference to the diagram's property collection, used for data defined overrides.
* @note added in QGIS 2.16
* @see setProperties()
*/
QgsPropertyCollection& properties();

/** Returns a reference to the diagram's property collection, used for data defined overrides.
* @note added in QGIS 2.16
* @see setProperties()
*/
//const QgsPropertyCollection& properties() const;

/** Sets the diagram's property collection, used for data defined overrides.
* @param collection property collection. Existing properties will be replaced.
* @note adde in QGIS 2.16
* @see properties()
*/
void setProperties( const QgsPropertyCollection& collection );

};

/** \ingroup core
@@ -253,14 +253,23 @@ class CORE_EXPORT QgsDiagramLayerSettings

/** Returns a reference to the diagram's property collection, used for data defined overrides.
* @note added in QGIS 3.0
* @see setProperties()
*/
QgsPropertyCollection& properties() { return mProperties; }

/** Returns a reference to the diagram's property collection, used for data defined overrides.
* @note added in QGIS 3.0
* @see setProperties()
*/
const QgsPropertyCollection& properties() const { return mProperties; }

/** Sets the diagram's property collection, used for data defined overrides.
* @param collection property collection. Existing properties will be replaced.
* @note added in QGIS 3.0
* @see properties()
*/
void setProperties( const QgsPropertyCollection& collection ) { mProperties = collection; }

private:

//! Associated coordinate transform, or invalid transform for no transformation

0 comments on commit a4ef9ad

Please sign in to comment.