16#ifndef QGSFIELDCOMBOBOX_H
17#define QGSFIELDCOMBOBOX_H
41 Q_PROPERTY( QgsFieldProxyModel::Filters filters READ filters WRITE setFilters )
42 Q_PROPERTY(
bool allowEmptyFieldName READ allowEmptyFieldName WRITE setAllowEmptyFieldName )
63 void setAllowEmptyFieldName(
bool allowEmpty );
70 bool allowEmptyFieldName()
const;
73 QString currentField()
const;
91 void setFields(
const QgsFields &fields );
117 void setField(
const QString &fieldName );
120 void indexChanged(
int i );
The QgsFieldComboBox is a combo box which displays the list of fields of a given layer.
void fieldChanged(const QString &fieldName)
Emitted when the currently selected field changes.
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
const Filters & filters() const
Returns the filters controlling displayed fields.
Container of fields for a vector layer.
Base class for all map layer types.
Represents a vector layer which manages a vector based data sets.