41 Q_PROPERTY(
QgsVectorLayer *sourceLayer READ sourceLayer WRITE setSourceLayer NOTIFY sourceLayerChanged )
42 Q_PROPERTY( QString displayExpression READ displayExpression WRITE setDisplayExpression NOTIFY displayExpressionChanged )
43 Q_PROPERTY( QString filterExpression READ filterExpression WRITE setFilterExpression NOTIFY filterExpressionChanged )
44 Q_PROPERTY( QVariant identifierValue READ identifierValue WRITE setIdentifierValue NOTIFY identifierValueChanged )
45 Q_PROPERTY( QVariantList identifierValues READ identifierValues WRITE setIdentifierValues NOTIFY identifierValueChanged )
46 Q_PROPERTY( QString identifierField READ identifierField WRITE setIdentifierField NOTIFY identifierFieldChanged )
47 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull NOTIFY allowNullChanged )
69 void setCurrentFeature( const
QgsFeature &feature );
75 QString displayExpression() const;
81 void setDisplayExpression( const QString &displayExpression );
89 int nullIndex() const;
95 QString filterExpression() const;
101 void setFilterExpression( const QString &filterExpression );
113 void setFormFeature( const
QgsFeature &feature );
125 void setParentFormFeature( const
QgsFeature &feature );
132 Q_DECL_DEPRECATED QVariant identifierValue() const
SIP_DEPRECATED;
139 QVariantList identifierValues() const;
147 Q_DECL_DEPRECATED
void setIdentifierValue( const QVariant &identifierValue )
SIP_DEPRECATED;
154 void setIdentifierValues( const QVariantList &identifierValues );
160 void setIdentifierValuesToNull();
171 bool allowNull() const;
176 void setAllowNull(
bool allowNull );
182 int fetchLimit() const;
189 void setFetchLimit(
int fetchLimit );
203 QStringList identifierFields() const;
210 Q_DECL_DEPRECATED
void setIdentifierField( const QString &identifierField )
SIP_DEPRECATED;
217 void setIdentifierFields( const QStringList &identifierFields );
222 QModelIndex currentModelIndex() const;
224 void focusOutEvent( QFocusEvent *event ) override;
226 void keyPressEvent( QKeyEvent *event ) override;
240 void sourceLayerChanged();
246 void displayExpressionChanged();
252 void filterExpressionChanged();
258 void formFeatureChanged();
264 void parentFormFeatureChanged();
270 void identifierValueChanged();
276 void identifierFieldChanged();
281 void allowNullChanged();
287 void currentFeatureChanged();
293 void currentFeatureFoundChanged(
bool found );
296 void onCurrentTextChanged( const QString &text );
297 void onFilterLineEditCleared();
298 void onFilterUpdateCompleted();
299 void onLoadingChanged();
300 void onItemSelected( const QModelIndex &index );
301 void onCurrentIndexChanged(
int i );
302 void onActivated( QModelIndex index );
303 void storeLineEditState();
304 void restoreLineEditState();
305 void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<
int> &roles = QVector<
int>() );
309 QCompleter *mCompleter =
nullptr;
311 bool mPopupRequested = false;
312 bool mIsCurrentlyEdited = false;
314 friend class TestQgsFeatureListComboBox;