QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | List of all members
FromDbTablePlugin Class Reference

Widget auto conf plugin that reads the widget setup to use from what the data provider says. More...

Inheritance diagram for FromDbTablePlugin:
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 reads the widget setup to use from what the data provider says.

Note
not available in Python bindings
Since
QGIS 3.0

Definition at line 65 of file qgseditorwidgetautoconf.cpp.

Member Function Documentation

◆ editorWidgetSetup()

QgsEditorWidgetSetup FromDbTablePlugin::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 68 of file qgseditorwidgetautoconf.cpp.


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