File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -205,14 +205,23 @@ class QgsDiagramLayerSettings
205
205
206
206
/** Returns a reference to the diagram's property collection, used for data defined overrides.
207
207
* @note added in QGIS 2.16
208
+ * @see setProperties()
208
209
*/
209
210
QgsPropertyCollection& properties();
210
211
211
212
/** Returns a reference to the diagram's property collection, used for data defined overrides.
212
213
* @note added in QGIS 2.16
214
+ * @see setProperties()
213
215
*/
214
216
//const QgsPropertyCollection& properties() const;
215
217
218
+ /** Sets the diagram's property collection, used for data defined overrides.
219
+ * @param collection property collection. Existing properties will be replaced.
220
+ * @note adde in QGIS 2.16
221
+ * @see properties()
222
+ */
223
+ void setProperties( const QgsPropertyCollection& collection );
224
+
216
225
};
217
226
218
227
/** \ingroup core
Original file line number Diff line number Diff line change @@ -253,14 +253,23 @@ class CORE_EXPORT QgsDiagramLayerSettings
253
253
254
254
/* * Returns a reference to the diagram's property collection, used for data defined overrides.
255
255
* @note added in QGIS 3.0
256
+ * @see setProperties()
256
257
*/
257
258
QgsPropertyCollection& properties () { return mProperties ; }
258
259
259
260
/* * Returns a reference to the diagram's property collection, used for data defined overrides.
260
261
* @note added in QGIS 3.0
262
+ * @see setProperties()
261
263
*/
262
264
const QgsPropertyCollection& properties () const { return mProperties ; }
263
265
266
+ /* * Sets the diagram's property collection, used for data defined overrides.
267
+ * @param collection property collection. Existing properties will be replaced.
268
+ * @note added in QGIS 3.0
269
+ * @see properties()
270
+ */
271
+ void setProperties ( const QgsPropertyCollection& collection ) { mProperties = collection; }
272
+
264
273
private:
265
274
266
275
// ! Associated coordinate transform, or invalid transform for no transformation
You can’t perform that action at this time.
0 commit comments