Skip to content

Commit 12f3400

Browse files
author
jef
committed
fix help button in query builder
git-svn-id: http://svn.osgeo.org/qgis/trunk@12202 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cbcadb4 commit 12f3400

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/app/qgsquerybuilder.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <QListView>
1919
#include <QMessageBox>
2020
#include <QRegExp>
21+
#include <QPushButton>
2122
#include "qgslogger.h"
2223
#include "qgsvectorlayer.h"
2324
#include "qgsvectordataprovider.h"

src/app/qgsquerybuilder.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
#include "ui_qgsquerybuilderbase.h"
2323
#include "qgisgui.h"
2424
#include "qgsfield.h"
25-
#include <QPushButton>
25+
#include "qgscontexthelp.h"
2626

2727
class QgsVectorLayer;
28+
2829
/*!
2930
* \class QgsQueryBuilder
3031
* \brief Query Builder for PostgreSQL layers.
@@ -93,6 +94,9 @@ class QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBase
9394
void on_btnNot_clicked();
9495
void on_btnOr_clicked();
9596

97+
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
98+
99+
96100
/*! Test the constructed sql statement to see if the database likes it.
97101
* The number of rows that would be returned is displayed in a message box.
98102
* The test uses a "select count(*) from ..." query to test the SQL

0 commit comments

Comments
 (0)