Skip to content

Commit

Permalink
disable unsupported operators in query builder for search strings
Browse files Browse the repository at this point in the history
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.
11 changes: 10 additions & 1 deletion src/gui/qgssearchquerybuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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.