mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Allow setting diagram properties collection
This commit is contained in:
parent
83139cc40e
commit
a4ef9ad89c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user