QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | List of all members
FromFactoriesPlugin Class Reference

Widget auto conf plugin that guesses what widget type to use in function of what the widgets support. More...

Inheritance diagram for FromFactoriesPlugin:
Inheritance graph
[legend]

Public Member Functions

QgsEditorWidgetSetup editorWidgetSetup (const QgsVectorLayer *vl, const QString &fieldName, int &score) const override
 Typical scores are: More...
 
- Public Member Functions inherited from QgsEditorWidgetAutoConfPlugin
virtual ~QgsEditorWidgetAutoConfPlugin ()=default
 

Detailed Description

Widget auto conf plugin that guesses what widget type to use in function of what the widgets support.

Note
not available in Python bindings
Since
QGIS 3.0

Definition at line 27 of file qgseditorwidgetautoconf.cpp.

Member Function Documentation

QgsEditorWidgetSetup FromFactoriesPlugin::editorWidgetSetup ( const QgsVectorLayer vl,
const QString &  fieldName,
int &  score 
) const
inlineoverridevirtual

Typical scores are:

  • 0: no matching type found.
  • 10: a widget has been guessed from the type of field.
  • 20: a widget has been determined from an external configuration (for example a database table)
Parameters
vlThe vector layer for which this widget will be created
fieldNameThe field name on the specified layer for which this widget will be created
scoreWhere the score is returned (default to 0)
Returns
and integer value rating how good is the setup provided by this plugin.

Implements QgsEditorWidgetAutoConfPlugin.

Definition at line 30 of file qgseditorwidgetautoconf.cpp.


The documentation for this class was generated from the following file: