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
wonder committed Mar 16, 2006
1 parent 0c4aae1 commit 5dd5770b925c47a9248f0e6080700d305549d9c8
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/gui/qgssearchquerybuilder.cpp
@@ -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.
You can’t perform that action at this time.