58 Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
60 void showEvent( QShowEvent *event )
override;
66 void setSql(
const QString &sqlStatement );
69 void setSubsetString(
const QString &subsetString )
override { setSql( subsetString ); }
86 QWidget *codeEditorWidget()
const;
101 static bool saveQueryToFile(
const QString &subset );
107 static bool loadQueryFromFile( QString &subset );
110 void accept()
override;
111 void reject()
override;
135 void setDatasourceDescription(
const QString &uri );
138 void btnEqual_clicked();
139 void btnLessThan_clicked();
140 void btnGreaterThan_clicked();
141 void btnPct_clicked();
142 void btnIn_clicked();
143 void btnNotIn_clicked();
144 void btnLike_clicked();
145 void btnILike_clicked();
146 void lstFields_clicked(
const QModelIndex &index );
147 void lstFields_doubleClicked(
const QModelIndex &index );
148 void lstValues_doubleClicked(
const QModelIndex &index );
149 void btnLessEqual_clicked();
150 void btnGreaterEqual_clicked();
151 void btnNotEqual_clicked();
152 void btnAnd_clicked();
153 void btnNot_clicked();
154 void btnOr_clicked();
155 void onTextChanged(
const QString &text );
156 void layerSubsetStringChanged();
162 void btnGetAllValues_clicked();
169 void btnSampleValues_clicked();
178 void setupGuiViews();
179 void fillValues(
const QString &field,
int limit );
185 QStandardItemModel *mModelValues =
nullptr;
187 QSortFilterProxyModel *mProxyValues =
nullptr;
189 int mPreviousFieldRow;
195 QString mOrigSubsetString;
198 bool mIgnoreLayerSubsetStringChangedSignal =
false;
200 friend class TestQgsQueryBuilder;