41 return new QgsDummyConfigDlg( vl, fieldIdx, parent, QObject::tr(
"List field" ) );
47 return ( field.
type() == QVariant::List || field.
type() == QVariant::StringList || field.
typeName() == QLatin1String(
"json" ) || field.
typeName() == QLatin1String(
"jsonb" ) ) && field.
subType() != QVariant::Invalid ? 20 : 0;
QString typeName() const
Gets the field type.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
Encapsulate a field in an attribute table or data source.
QgsField field(int fieldIdx) const
Gets field at particular index (must be in range 0..N-1)
Represents a vector layer which manages a vector based data sets.
QVariant::Type subType() const
If the field is a collection, gets its element's type.