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 )
53 void setFilters( QgsFieldProxyModel::Filters filters );
56 QgsFieldProxyModel::Filters
filters()
const {
return mFieldProxyModel->filters(); }
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.
QgsFieldProxyModel::Filters filters() const
currently used filter on list of fields
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
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.