@@ -1264,14 +1264,14 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
1264
1264
/* *
1265
1265
* Get edit type
1266
1266
*
1267
- * @deprecated Use @see{ editorWidgetV2} instead
1267
+ * @deprecated Use editorWidgetV2() instead
1268
1268
*/
1269
1269
Q_DECL_DEPRECATED EditType editType ( int idx );
1270
1270
1271
1271
/* *
1272
1272
* Get edit type
1273
1273
*
1274
- * @deprecated Use @see{ setEditorWidgetV2} instead
1274
+ * @deprecated Use setEditorWidgetV2() instead
1275
1275
*/
1276
1276
Q_DECL_DEPRECATED void setEditType ( int idx, EditType edit );
1277
1277
@@ -1312,17 +1312,26 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
1312
1312
void setEditorWidgetV2 ( int attrIdx, const QString& widgetType );
1313
1313
1314
1314
/* *
1315
- * Set the editor widget config for a field
1315
+ * Set the editor widget config for a field.
1316
+ *
1317
+ * Python: Will accept a map.
1318
+ *
1319
+ * Example:
1320
+ * \code{.py}
1321
+ * layer.setEditorWidgetV2Config( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField } )
1322
+ * \endcode
1316
1323
*
1317
1324
* @param attrIdx Index of the field
1318
1325
* @param config The config to set for this field
1326
+ *
1327
+ * @see setEditorWidgetV2() for a list of widgets and choose the widget to see the available options.
1319
1328
*/
1320
1329
void setEditorWidgetV2Config ( int attrIdx, const QgsEditorWidgetConfig& config );
1321
1330
1322
1331
/* *
1323
1332
* Set string representing 'true' for a checkbox (added in 1.4)
1324
1333
*
1325
- * @deprecated Use @see{ setEditorWidgetV2Config} instead
1334
+ * @deprecated Use setEditorWidgetV2Config() instead
1326
1335
*/
1327
1336
Q_DECL_DEPRECATED void setCheckedState ( int idx, QString checked, QString notChecked );
1328
1337
@@ -1354,14 +1363,14 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
1354
1363
1355
1364
/* *
1356
1365
* Access value map
1357
- * @deprecated Use @see{ editorWidgetV2Config} instead
1366
+ * @deprecated Use editorWidgetV2Config() instead
1358
1367
*/
1359
1368
Q_DECL_DEPRECATED QMap<QString, QVariant> valueMap ( int idx );
1360
1369
1361
1370
/* *
1362
1371
* Access range widget config data
1363
1372
*
1364
- * @deprecated Use @see{ editorWidgetV2Config} instead
1373
+ * @deprecated Use editorWidgetV2Config() instead
1365
1374
*/
1366
1375
Q_DECL_DEPRECATED RangeData range ( int idx );
1367
1376
@@ -1385,7 +1394,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
1385
1394
*
1386
1395
* @note added in 1.9
1387
1396
*
1388
- * @deprecated Use @see{setEditorWdigetV2Config} instead
1397
+ * @deprecated Use setEditorWidgetV2Config() instead
1389
1398
*/
1390
1399
Q_DECL_DEPRECATED QString dateFormat ( int idx );
1391
1400
@@ -1394,7 +1403,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
1394
1403
*
1395
1404
* @note added in 1.9
1396
1405
*
1397
- * @deprecated Use @see{setEditorWdigetV2Config} instead
1406
+ * @deprecated Use setEditorWidgetV2Config() instead
1398
1407
*/
1399
1408
Q_DECL_DEPRECATED QSize widgetSize ( int idx );
1400
1409
0 commit comments