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 );
87 QString filterExpression() const;
95 int nullIndex() const;
101 void setFilterExpression( const QString &filterExpression );
108 Q_DECL_DEPRECATED QVariant identifierValue() const
SIP_DEPRECATED;
115 QVariantList identifierValues() const;
123 Q_DECL_DEPRECATED
void setIdentifierValue( const QVariant &identifierValue )
SIP_DEPRECATED;
130 void setIdentifierValues( const QVariantList &identifierValues );
136 void setIdentifierValuesToNull();
147 bool allowNull() const;
152 void setAllowNull(
bool allowNull );
158 int fetchLimit() const;
165 void setFetchLimit(
int fetchLimit );
179 QStringList identifierFields() const;
186 Q_DECL_DEPRECATED
void setIdentifierField( const QString &identifierField )
SIP_DEPRECATED;
193 void setIdentifierFields( const QStringList &identifierFields );
198 QModelIndex currentModelIndex() const;
200 void focusOutEvent( QFocusEvent *event ) override;
202 void keyPressEvent( QKeyEvent *event ) override;
216 void sourceLayerChanged();
222 void displayExpressionChanged();
228 void filterExpressionChanged();
234 void identifierValueChanged();
240 void identifierFieldChanged();
245 void allowNullChanged();
251 void currentFeatureChanged();
257 void currentFeatureFoundChanged(
bool found );
260 void onCurrentTextChanged( const QString &text );
261 void onFilterLineEditCleared();
262 void onFilterUpdateCompleted();
263 void onLoadingChanged();
264 void onItemSelected( const QModelIndex &index );
265 void onCurrentIndexChanged(
int i );
266 void onActivated( QModelIndex index );
267 void storeLineEditState();
268 void restoreLineEditState();
269 void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<
int> &roles = QVector<
int>() );
273 QCompleter *mCompleter =
nullptr;
275 bool mPopupRequested = false;
276 bool mIsCurrentlyEdited = false;
278 friend class TestQgsFeatureListComboBox;