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 )
70 void setCurrentFeature( const
QgsFeature &feature );
76 QString displayExpression() const;
82 void setDisplayExpression( const QString &displayExpression );
88 QString filterExpression() const;
96 int nullIndex() const;
102 void setFilterExpression( const QString &filterExpression );
109 Q_DECL_DEPRECATED QVariant identifierValue() const
SIP_DEPRECATED;
116 QVariantList identifierValues() const;
124 Q_DECL_DEPRECATED
void setIdentifierValue( const QVariant &identifierValue )
SIP_DEPRECATED;
131 void setIdentifierValues( const QVariantList &identifierValues );
137 void setIdentifierValuesToNull();
148 bool allowNull() const;
153 void setAllowNull(
bool allowNull );
159 int fetchLimit() const;
166 void setFetchLimit(
int fetchLimit );
180 QStringList identifierFields() const;
187 Q_DECL_DEPRECATED
void setIdentifierField( const QString &identifierField )
SIP_DEPRECATED;
194 void setIdentifierFields( const QStringList &identifierFields );
199 QModelIndex currentModelIndex() const;
201 void focusOutEvent( QFocusEvent *event ) override;
203 void keyPressEvent( QKeyEvent *event ) override;
217 void sourceLayerChanged();
223 void displayExpressionChanged();
229 void filterExpressionChanged();
235 void identifierValueChanged();
241 void identifierFieldChanged();
246 void allowNullChanged();
252 void currentFeatureChanged();
258 void currentFeatureFoundChanged(
bool found );
261 void onCurrentTextChanged( const QString &text );
262 void onFilterLineEditCleared();
263 void onFilterUpdateCompleted();
264 void onLoadingChanged();
265 void onItemSelected( const QModelIndex &index );
266 void onCurrentIndexChanged(
int i );
267 void onActivated( QModelIndex index );
268 void storeLineEditState();
269 void restoreLineEditState();
270 void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<
int> &roles = QVector<
int>() );
274 QCompleter *mCompleter =
nullptr;
276 bool mPopupRequested = false;
277 bool mIsCurrentlyEdited = false;
279 friend class TestQgsFeatureListComboBox;