QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
41 return new QgsDateTimeEditConfig( vl, fieldIdx, parent );
46 QHash<const char *, int> map = QHash<const char *, int>();
47 map.insert( QDateTimeEdit::staticMetaObject.className(), 10 );
48 map.insert( QgsDateTimeEdit::staticMetaObject.className(), 10 );
56 if ( field.
isDateOrTime() || config.contains( QStringLiteral(
"field_format" ) ) )
unsigned int fieldScore(const QgsVectorLayer *vl, int fieldIdx) const override
This method allows disabling this editor widget type for a certain field.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
QgsEditorConfigWidget * configWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
Override this in your implementation.
QgsEditorWidgetWrapper * create(QgsVectorLayer *vl, int fieldIdx, QWidget *editor, QWidget *parent) const override
Override this in your implementation.
QgsField field(int fieldIdx) const
Gets field at particular index (must be in range 0..N-1)
QgsDateTimeEditFactory(const QString &name)
Constructor for QgsDateTimeEditFactory, where name is a human-readable name for the factory.
QHash< const char *, int > supportedWidgetTypes() override
Returns a list of widget types which this editor widget supports.
QgsEditorWidgetSetup editorWidgetSetup() const
Gets the editor widget setup for the field.
QgsSearchWidgetWrapper * createSearchWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
By default a simple QgsFilterLineEdit is returned as search widget.