Skip to content

Commit 88d6e0d

Browse files
committed
Doxymentation
1 parent be01b7e commit 88d6e0d

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/core/qgseditformconfig.h

+7-11
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,6 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
408408
* @param fieldName The name of the field
409409
*
410410
* @return The id for the editor widget or a NULL string if not applicable
411-
*
412-
* @note python method name editorWidgetV2ByName
413411
*/
414412
QString widgetType( const QString& fieldName ) const;
415413

@@ -420,30 +418,30 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
420418
*
421419
* Example:
422420
* \code{.py}
423-
* layer.setEditorWidgetV2Config( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField' } )
421+
* layer.setWidgetConfig( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField' } )
424422
* \endcode
425423
*
426424
* @param attrIdx Index of the field
427425
* @param config The config to set for this field
428426
*
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.
430428
*/
431429
void setWidgetConfig( int attrIdx, const QgsEditorWidgetConfig& config );
432430

433431
/**
434-
* Set the editor widget config for a field.
432+
* Set the editor widget config for a widget.
435433
*
436-
* Python: Will accept a map.
434+
* Python: Will accept a map
437435
*
438436
* Example:
439437
* \code{.py}
440-
* layer.setEditorWidgetV2Config( 1, { 'Layer': 'otherlayerid_1234', 'Key': 'Keyfield', 'Value': 'ValueField' } )
438+
* layer.setWidgetConfig( 'relation_id', { 'nm-rel': 'other_relation' } )
441439
* \endcode
442440
*
443-
* @param attrIdx Index of the field
441+
* @param widgetName The name of the widget or field to configure
444442
* @param config The config to set for this field
445443
*
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.
447445
*/
448446
void setWidgetConfig( const QString& widgetName , const QgsEditorWidgetConfig& config );
449447

@@ -462,8 +460,6 @@ class CORE_EXPORT QgsEditFormConfig : public QObject
462460
* @param widgetName The name of the widget. This can be a field name or the name of an additional widget.
463461
*
464462
* @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
467463
*/
468464
QgsEditorWidgetConfig widgetConfig( const QString& widgetName ) const;
469465

0 commit comments

Comments
 (0)