43 Q_PROPERTY(
QgsVectorLayer *sourceLayer READ sourceLayer WRITE setSourceLayer NOTIFY sourceLayerChanged )
44 Q_PROPERTY( QString displayExpression READ displayExpression WRITE setDisplayExpression NOTIFY displayExpressionChanged )
45 Q_PROPERTY( QString filterExpression READ filterExpression WRITE setFilterExpression NOTIFY filterExpressionChanged )
46 Q_PROPERTY( QVariant identifierValue READ identifierValue WRITE setIdentifierValue NOTIFY identifierValueChanged )
47 Q_PROPERTY( QVariantList identifierValues READ identifierValues WRITE setIdentifierValues NOTIFY identifierValueChanged )
48 Q_PROPERTY( QString identifierField READ identifierField WRITE setIdentifierField NOTIFY identifierFieldChanged )
49 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull NOTIFY allowNullChanged )
72 void setCurrentFeature( const
QgsFeature &feature );
78 QString displayExpression() const;
84 void setDisplayExpression( const QString &displayExpression );
90 QString filterExpression() const;
98 int nullIndex() const;
104 void setFilterExpression( const QString &filterExpression );
111 Q_DECL_DEPRECATED QVariant identifierValue() const
SIP_DEPRECATED;
118 QVariantList identifierValues() const;
126 Q_DECL_DEPRECATED
void setIdentifierValue( const QVariant &identifierValue )
SIP_DEPRECATED;
133 void setIdentifierValues( const QVariantList &identifierValues );
139 void setIdentifierValuesToNull();
150 bool allowNull() const;
155 void setAllowNull(
bool allowNull );
161 int fetchLimit() const;
168 void setFetchLimit(
int fetchLimit );
182 QStringList identifierFields() const;
189 Q_DECL_DEPRECATED
void setIdentifierField( const QString &identifierField )
SIP_DEPRECATED;
196 void setIdentifierFields( const QStringList &identifierFields );
201 QModelIndex currentModelIndex() const;
203 void focusOutEvent( QFocusEvent *event ) override;
205 void keyPressEvent( QKeyEvent *event ) override;
219 void sourceLayerChanged();
225 void displayExpressionChanged();
231 void filterExpressionChanged();
237 void identifierValueChanged();
243 void identifierFieldChanged();
248 void allowNullChanged();
254 void currentFeatureChanged();
257 void onCurrentTextChanged( const QString &text );
258 void onFilterUpdateCompleted();
259 void onLoadingChanged();
260 void onItemSelected( const QModelIndex &index );
261 void onCurrentIndexChanged(
int i );
262 void onActivated( QModelIndex index );
263 void storeLineEditState();
264 void restoreLineEditState();
265 void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<
int> &roles = QVector<
int>() );
269 QCompleter *mCompleter =
nullptr;
271 bool mPopupRequested = false;
272 bool mIsCurrentlyEdited = false;
274 friend class TestQgsFeatureListComboBox;