58 void showEvent( QShowEvent *event )
override;
64 void setSql(
const QString &sqlStatement );
67 void setSubsetString(
const QString &subsetString )
override { setSql( subsetString ); }
84 QWidget *codeEditorWidget()
const;
99 static bool saveQueryToFile(
const QString &subset );
105 static bool loadQueryFromFile( QString &subset );
108 void accept()
override;
109 void reject()
override;
133 void setDatasourceDescription(
const QString &uri );
136 void btnEqual_clicked();
137 void btnLessThan_clicked();
138 void btnGreaterThan_clicked();
139 void btnPct_clicked();
140 void btnIn_clicked();
141 void btnNotIn_clicked();
142 void btnLike_clicked();
143 void btnILike_clicked();
144 void lstFields_clicked(
const QModelIndex &index );
145 void lstFields_doubleClicked(
const QModelIndex &index );
146 void lstValues_doubleClicked(
const QModelIndex &index );
147 void btnLessEqual_clicked();
148 void btnGreaterEqual_clicked();
149 void btnNotEqual_clicked();
150 void btnAnd_clicked();
151 void btnNot_clicked();
152 void btnOr_clicked();
153 void onTextChanged(
const QString &text );
154 void layerSubsetStringChanged();
160 void btnGetAllValues_clicked();
167 void btnSampleValues_clicked();
175 void setupGuiViews();
176 void fillValues(
const QString &field,
int limit );
182 QStandardItemModel *mModelValues =
nullptr;
184 QSortFilterProxyModel *mProxyValues =
nullptr;
186 int mPreviousFieldRow;
192 QString mOrigSubsetString;
195 bool mIgnoreLayerSubsetStringChangedSignal =
false;
197 friend class TestQgsQueryBuilder;