@@ -408,8 +408,6 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
408
408
* @param fieldName The name of the field
409
409
*
410
410
* @return The id for the editor widget or a NULL string if not applicable
411
- *
412
- * @note python method name editorWidgetV2ByName
413
411
*/
414
412
QString widgetType ( const QString& fieldName ) const ;
415
413
@@ -420,30 +418,30 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
420
418
*
421
419
* Example:
422
420
* \code{.py}
423
- * layer.setEditorWidgetV2Config ( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField' } )
421
+ * layer.setWidgetConfig ( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField' } )
424
422
* \endcode
425
423
*
426
424
* @param attrIdx Index of the field
427
425
* @param config The config to set for this field
428
426
*
429
- * @see setEditorWidgetV2 () for a list of widgets and choose the widget to see the available options.
427
+ * @see setWidgetType () for a list of widgets and choose the widget to see the available options.
430
428
*/
431
429
void setWidgetConfig ( int attrIdx, const QgsEditorWidgetConfig& config );
432
430
433
431
/* *
434
- * Set the editor widget config for a field .
432
+ * Set the editor widget config for a widget .
435
433
*
436
- * Python: Will accept a map.
434
+ * Python: Will accept a map
437
435
*
438
436
* Example:
439
437
* \code{.py}
440
- * layer.setEditorWidgetV2Config( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value' : 'ValueField ' } )
438
+ * layer.setWidgetConfig( 'relation_id', { 'nm-rel' : 'other_relation ' } )
441
439
* \endcode
442
440
*
443
- * @param attrIdx Index of the field
441
+ * @param widgetName The name of the widget or field to configure
444
442
* @param config The config to set for this field
445
443
*
446
- * @see setEditorWidgetV2 () for a list of widgets and choose the widget to see the available options.
444
+ * @see setWidgetType () for a list of widgets and choose the widget to see the available options.
447
445
*/
448
446
void setWidgetConfig ( const QString& widgetName , const QgsEditorWidgetConfig& config );
449
447
@@ -462,8 +460,6 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
462
460
* @param widgetName The name of the widget. This can be a field name or the name of an additional widget.
463
461
*
464
462
* @return The configuration for the editor widget or an empty config if the field does not exist
465
- *
466
- * @note python method name is editorWidgetV2ConfigByName
467
463
*/
468
464
QgsEditorWidgetConfig widgetConfig ( const QString& widgetName ) const ;
469
465
0 commit comments