Skip to content

Commit

Permalink
fix help button in query builder
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12202 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 20, 2009
1 parent b3e34c0 commit 65395c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgsquerybuilder.cpp
Expand Up @@ -18,6 +18,7 @@
#include <QListView>
#include <QMessageBox>
#include <QRegExp>
#include <QPushButton>
#include "qgslogger.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
Expand Down
6 changes: 5 additions & 1 deletion src/app/qgsquerybuilder.h
Expand Up @@ -22,9 +22,10 @@
#include "ui_qgsquerybuilderbase.h"
#include "qgisgui.h"
#include "qgsfield.h"
#include <QPushButton>
#include "qgscontexthelp.h"

class QgsVectorLayer;

/*!
* \class QgsQueryBuilder
* \brief Query Builder for PostgreSQL layers.
Expand Down Expand Up @@ -93,6 +94,9 @@ class QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
void on_btnNot_clicked();
void on_btnOr_clicked();

void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }


/*! Test the constructed sql statement to see if the database likes it.
* The number of rows that would be returned is displayed in a message box.
* The test uses a "select count(*) from ..." query to test the SQL
Expand Down

0 comments on commit 65395c5

Please sign in to comment.