Skip to content
Permalink
Browse files
disable unsupported operators in query builder for search strings
git-svn-id: http://svn.osgeo.org/qgis/trunk@5036 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 16, 2006
1 parent 0c4aae1 commit 5dd5770
Showing 1 changed file with 10 additions and 1 deletion.
@@ -31,6 +31,14 @@ QgsSearchQueryBuilder::QgsSearchQueryBuilder(QgsVectorLayer* layer,
{
setupUi(this);

// disable unsupported operators
btnIn->setEnabled(false);
btnNotIn->setEnabled(false);
btnPct->setEnabled(false);

// change to ~
btnILike->setText("~");

lblDataUri->setText(layer->name());
populateFields();
}
@@ -286,6 +294,7 @@ void QgsSearchQueryBuilder::on_btnClear_clicked()

void QgsSearchQueryBuilder::on_btnILike_clicked()
{
txtSQL->insert(" ILIKE ");
//txtSQL->insert(" ILIKE ");
txtSQL->insert(" ~ ");
}

0 comments on commit 5dd5770

Please sign in to comment.