Skip to content

Commit f4f56d2

Browse files
author
wonder
committed
disable unsupported operators in query builder for search strings
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5036 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 30c03a9 commit f4f56d2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/gui/qgssearchquerybuilder.cpp

+10-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ QgsSearchQueryBuilder::QgsSearchQueryBuilder(QgsVectorLayer* layer,
3131
{
3232
setupUi(this);
3333

34+
// disable unsupported operators
35+
btnIn->setEnabled(false);
36+
btnNotIn->setEnabled(false);
37+
btnPct->setEnabled(false);
38+
39+
// change to ~
40+
btnILike->setText("~");
41+
3442
lblDataUri->setText(layer->name());
3543
populateFields();
3644
}
@@ -286,6 +294,7 @@ void QgsSearchQueryBuilder::on_btnClear_clicked()
286294

287295
void QgsSearchQueryBuilder::on_btnILike_clicked()
288296
{
289-
txtSQL->insert(" ILIKE ");
297+
//txtSQL->insert(" ILIKE ");
298+
txtSQL->insert(" ~ ");
290299
}
291300

0 commit comments

Comments
 (0)