Skip to content

Commit e29ccb7

Browse files
mbernasocchinyalldawson
authored andcommittedJan 21, 2019
Add better api docs on Property usage
(cherry picked from commit 6dc537f)
1 parent 8871a58 commit e29ccb7

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed
 

‎src/core/layout/qgslayoutobject.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,15 @@ class CORE_EXPORT QgsLayoutObject: public QObject, public QgsExpressionContextGe
225225
/**
226226
* Returns a reference to the object's property collection, used for data defined overrides.
227227
* \see setDataDefinedProperties()
228+
* \see DataDefinedProperty
228229
*/
229230
const QgsPropertyCollection &dataDefinedProperties() const { return mDataDefinedProperties; } SIP_SKIP
230231

231232
/**
232233
* Sets the objects's property collection, used for data defined overrides.
233234
* \param collection property collection. Existing properties will be replaced.
234235
* \see dataDefinedProperties()
236+
* \see DataDefinedProperty
235237
*/
236238
void setDataDefinedProperties( const QgsPropertyCollection &collection ) { mDataDefinedProperties = collection; }
237239

‎src/core/qgsdiagramrenderer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ class CORE_EXPORT QgsDiagramLayerSettings
308308
/**
309309
* Returns a reference to the diagram's property collection, used for data defined overrides.
310310
* \see setDataDefinedProperties()
311+
* \see Property
311312
* \note not available in Python bindings
312313
* \since QGIS 3.0
313314
*/
@@ -317,6 +318,7 @@ class CORE_EXPORT QgsDiagramLayerSettings
317318
* Sets the diagram's property collection, used for data defined overrides.
318319
* \param collection property collection. Existing properties will be replaced.
319320
* \see dataDefinedProperties()
321+
* \see Property
320322
* \since QGIS 3.0
321323
*/
322324
void setDataDefinedProperties( const QgsPropertyCollection &collection ) { mDataDefinedProperties = collection; }

‎src/core/qgspallabeling.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ class CORE_EXPORT QgsPalLayerSettings
793793
/**
794794
* Returns a reference to the label's property collection, used for data defined overrides.
795795
* \see setDataDefinedProperties()
796+
* \see Property
796797
* \note not available in Python bindings
797798
* \since QGIS 3.0
798799
*/
@@ -802,6 +803,7 @@ class CORE_EXPORT QgsPalLayerSettings
802803
* Sets the label's property collection, used for data defined overrides.
803804
* \param collection property collection. Existing properties will be replaced.
804805
* \see dataDefinedProperties()
806+
* \see Property
805807
* \since QGIS 3.0
806808
*/
807809
void setDataDefinedProperties( const QgsPropertyCollection &collection ) { mDataDefinedProperties = collection; }

‎src/core/qgspropertycollection.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ class CORE_EXPORT QgsAbstractPropertyCollection
274274
* Properties within a collection are referenced by an integer key. This is done to avoid the cost of
275275
* string creation and comparisons which would be required by a string key. The intended use case is that
276276
* a context specific enum is cast to int and used for the key value.
277+
* Examples of such enums are :
278+
* \see QgsLayoutObject::DataDefinedProperty
279+
* \see QgsSymbolLayer::Property
280+
* \see QgsPalLabeling::Property
281+
* \see QgsAbstract3DSymbol::Property
282+
* \see QgsDiagramLayerSettings::Property
283+
* \see QgsPalLayerSettings::Property
284+
* \see QgsWidgetWrapper::Property
277285
* \since QGIS 3.0
278286
*/
279287

‎src/gui/editorwidgets/core/qgswidgetwrapper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class GUI_EXPORT QgsWidgetWrapper : public QObject
181181
/**
182182
* Returns a reference to the editor widget's property collection, used for data defined overrides.
183183
* \see setDataDefinedProperties()
184+
* \see Property
184185
* \since QGIS 3.0
185186
*/
186187
const QgsPropertyCollection &dataDefinedProperties() const { return mPropertyCollection; }
@@ -189,6 +190,7 @@ class GUI_EXPORT QgsWidgetWrapper : public QObject
189190
* Sets the editor widget's property collection, used for data defined overrides.
190191
* \param collection property collection. Existing properties will be replaced.
191192
* \see dataDefinedProperties()
193+
* \see Property
192194
* \since QGIS 3.0
193195
*/
194196
void setDataDefinedProperties( const QgsPropertyCollection &collection ) { mPropertyCollection = collection; }

0 commit comments

Comments
 (0)
Please sign in to comment.