[QGIS Commit] r12674 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Jan 5 12:39:46 EST 2010


Author: jef
Date: 2010-01-05 12:39:44 -0500 (Tue, 05 Jan 2010)
New Revision: 12674

Modified:
   trunk/qgis/src/app/qgsquerybuilder.cpp
   trunk/qgis/src/app/qgsquerybuilder.h
Log:
fix runtime warning

Modified: trunk/qgis/src/app/qgsquerybuilder.cpp
===================================================================
--- trunk/qgis/src/app/qgsquerybuilder.cpp	2010-01-05 16:06:18 UTC (rev 12673)
+++ trunk/qgis/src/app/qgsquerybuilder.cpp	2010-01-05 17:39:44 UTC (rev 12674)
@@ -39,11 +39,11 @@
 
   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 @@
   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 @@
   txtSQL->insertPlainText( " OR " );
 }
 
-void QgsQueryBuilder::on_btnClear_clicked()
+void QgsQueryBuilder::clear()
 {
   txtSQL->clear();
 }

Modified: trunk/qgis/src/app/qgsquerybuilder.h
===================================================================
--- trunk/qgis/src/app/qgsquerybuilder.h	2010-01-05 16:06:18 UTC (rev 12673)
+++ trunk/qgis/src/app/qgsquerybuilder.h	2010-01-05 17:39:44 UTC (rev 12674)
@@ -73,7 +73,7 @@
     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 @@
      * 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



More information about the QGIS-commit mailing list