Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 30d9f19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsquerybuilder.cpp
Expand Up @@ -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();

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -305,7 +305,7 @@ void QgsQueryBuilder::on_btnOr_clicked()
txtSQL->insertPlainText( " OR " );
}

void QgsQueryBuilder::on_btnClear_clicked()
void QgsQueryBuilder::clear()
{
txtSQL->clear();
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsquerybuilder.h
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 30d9f19

Please sign in to comment.