@@ -112,16 +112,32 @@ class CORE_EXPORT QgsSymbolV2
112
112
*/
113
113
int symbolLayerCount () { return mLayers .count (); }
114
114
115
- // ! insert symbol layer to specified index
115
+ /* *
116
+ * Insert symbol layer to specified index
117
+ * Ownership will be transferred.
118
+ * @param index The index at which the layer should be added
119
+ * @param layer The symbol layer to add
120
+ * @return True if the layer is added, False if the index or the layer is bad
121
+ */
116
122
bool insertSymbolLayer ( int index, QgsSymbolLayerV2* layer );
117
123
118
- // ! append symbol layer at the end of the list
124
+ /* *
125
+ * Append symbol layer at the end of the list
126
+ * Ownership will be transferred.
127
+ * @param layer The layer to add
128
+ * @return True if the layer is added, False if the layer is bad
129
+ */
119
130
bool appendSymbolLayer ( QgsSymbolLayerV2* layer );
120
131
121
132
// ! delete symbol layer at specified index
122
133
bool deleteSymbolLayer ( int index );
123
134
124
- // ! remove symbol layer from the list and return pointer to it
135
+ /* *
136
+ * Remove symbol layer from the list and return pointer to it.
137
+ * Ownership is handed to the caller.
138
+ * @param index The index of the layer to remove
139
+ * @return A pointer to the removed layer
140
+ */
125
141
QgsSymbolLayerV2* takeSymbolLayer ( int index );
126
142
127
143
// ! delete layer at specified index and set a new one
0 commit comments