File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,17 @@ public:
81
81
//! Available vector fields
82
82
QMap<int, QgsField> & fields ( );
83
83
84
- //! Pointer to default attributes
85
- QgsLabelAttributes *layerAttributes ( );
84
+ /** Pointer to default attributes.
85
+ * @note this will be deprecated in version 2 as it is
86
+ * badly named. Rather use attributes.
87
+ * @see labelAttributes method rather */
88
+ QgsLabelAttributes *layerAttributes( void );
89
+
90
+ /** Pointer to default attributes.
91
+ * @note this replaces the to-be-deprecated layerAttributes method.
92
+ * @note introduced in QGIS 1.4
93
+ */
94
+ QgsLabelAttributes *labelAttributes( void );
86
95
87
96
//! Set label field
88
97
void setLabelField ( int attr, int fieldId );
Original file line number Diff line number Diff line change @@ -508,6 +508,11 @@ QString QgsLabel::labelField( int attr ) const
508
508
return mField [fieldIndex].name ();
509
509
}
510
510
511
+ QgsLabelAttributes *QgsLabel::labelAttributes ( void )
512
+ {
513
+ return mLabelAttributes ;
514
+ }
515
+ // @note this will be deprecated use attributes rather
511
516
QgsLabelAttributes *QgsLabel::layerAttributes ( void )
512
517
{
513
518
return mLabelAttributes ;
Original file line number Diff line number Diff line change @@ -132,9 +132,18 @@ class CORE_EXPORT QgsLabel
132
132
// ! Available vector fields
133
133
QgsFieldMap & fields ( void );
134
134
135
- // ! Pointer to default attributes
135
+ /* * Pointer to default attributes.
136
+ * @note this will be deprecated in version 2 as it is
137
+ * badly named. Rather use attributes.
138
+ * @see labelAttributes method rather */
136
139
QgsLabelAttributes *layerAttributes ( void );
137
140
141
+ /* * Pointer to default attributes.
142
+ * @note this replaces the to-be-deprecated layerAttributes method.
143
+ * @note introduced in QGIS 1.4
144
+ */
145
+ QgsLabelAttributes *labelAttributes ( void );
146
+
138
147
// ! Set label field
139
148
void setLabelField ( int attr, int fieldIndex );
140
149
You can’t perform that action at this time.
0 commit comments