47 Q_PROPERTY(
QgsVectorLayer *layer READ layer WRITE setLayer NOTIFY layerChanged )
48 Q_PROPERTY( QString displayExpression READ displayExpression WRITE setDisplayExpression NOTIFY displayExpressionChanged )
49 Q_PROPERTY( QString filterExpression READ filterExpression WRITE setFilterExpression NOTIFY filterExpressionChanged )
50 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull NOTIFY allowNullChanged )
51 Q_PROPERTY(
bool fetchGeometry READ fetchGeometry WRITE setFetchGeometry NOTIFY fetchGeometryChanged )
52 Q_PROPERTY(
int fetchLimit READ fetchLimit WRITE setFetchLimit NOTIFY fetchLimitChanged )
53 Q_PROPERTY(
bool showBrowserButtons READ showBrowserButtons WRITE setShowBrowserButtons NOTIFY showBrowserButtonsChanged )
85 QString displayExpression() const;
91 void setDisplayExpression( const QString &displayExpression );
97 QString filterExpression() const;
103 int nullIndex() const;
109 void setFilterExpression( const QString &filterExpression );
114 bool allowNull() const;
119 void setAllowNull(
bool allowNull );
124 bool fetchGeometry() const;
129 void setFetchGeometry(
bool fetchGeometry );
134 int fetchLimit() const;
140 void setFetchLimit(
int fetchLimit );
145 bool showBrowserButtons() const;
151 void setShowBrowserButtons(
bool showBrowserButtons );
157 QModelIndex currentModelIndex() const;
159 void focusOutEvent( QFocusEvent *event ) override;
161 void keyPressEvent( QKeyEvent *event ) override;
179 void displayExpressionChanged();
185 void filterExpressionChanged();
193 void allowNullChanged();
198 void fetchGeometryChanged();
203 void fetchLimitChanged();
206 void showBrowserButtonsChanged();
209 void onCurrentTextChanged( const QString &text );
210 void onFilterUpdateCompleted();
211 void onLoadingChanged();
212 void onItemSelected( const QModelIndex &index );
213 void onCurrentIndexChanged(
int i );
214 void onActivated( QModelIndex index );
215 void storeLineEditState();
216 void restoreLineEditState();
217 void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<
int> &roles = QVector<
int>() );
218 void browseFeatures(
int direction );
221 QComboBox *mComboBox;
222 QToolButton *mPreviousButton;
223 QToolButton *mNextButton;
225 QCompleter *mCompleter =
nullptr;
227 bool mPopupRequested = false;
228 bool mIsCurrentlyEdited = false;
229 bool mShowBrowserButtons = false;