Skip to content
Permalink
Browse files
fix runtime warning
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12674 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 5, 2010
1 parent 1aae468 commit 30d9f19d445db2c3224531e21a134c5e1cb3af96
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/app/qgsquerybuilder.cpp
  2. +2 −2 src/app/qgsquerybuilder.h
@@ -39,11 +39,11 @@ QgsQueryBuilder::QgsQueryBuilder( QgsVectorLayer *layer,

QPushButton *pbn = new QPushButton( tr( "&Test" ) );
buttonBox->addButton( pbn, QDialogButtonBox::ActionRole );
connect( pbn, SIGNAL( clicked() ), this, SLOT( on_btnTest_clicked() ) );
connect( pbn, SIGNAL( clicked() ), this, SLOT( test() ) );

pbn = new QPushButton( tr( "&Clear" ) );
buttonBox->addButton( pbn, QDialogButtonBox::ActionRole );
connect( pbn, SIGNAL( clicked() ), this, SLOT( on_btnClear_clicked() ) );
connect( pbn, SIGNAL( clicked() ), this, SLOT( clear() ) );

setupGuiViews();

@@ -150,7 +150,7 @@ void QgsQueryBuilder::on_btnGetAllValues_clicked()
delete tmp;
}

void QgsQueryBuilder::on_btnTest_clicked()
void QgsQueryBuilder::test()
{
// test the sql statement to see if it works
// by counting the number of records that would be
@@ -305,7 +305,7 @@ void QgsQueryBuilder::on_btnOr_clicked()
txtSQL->insertPlainText( " OR " );
}

void QgsQueryBuilder::on_btnClear_clicked()
void QgsQueryBuilder::clear()
{
txtSQL->clear();
}
@@ -73,7 +73,7 @@ class QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
void accept();
void reject();
void helpClicked();
void on_btnClear_clicked();
void clear();
void on_btnEqual_clicked();
void on_btnLessThan_clicked();
void on_btnGreaterThan_clicked();
@@ -103,7 +103,7 @@ class QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
* statement.
* @param showResults If true, the results are displayed in a QMessageBox
*/
void on_btnTest_clicked();
void test();
/*!
* Get all distinct values for the field. Values are inserted
* into the value list box

0 comments on commit 30d9f19

Please sign in to comment.