Skip to content

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed
 

‎src/plugins/geoprocessing/qgsdlgpgbuffer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <QComboBox>
2525
#include <qvalidator.h>
2626
#include "qgsdlgpgbuffer.h"
27+
#include "qgscontexthelp.h"
2728
#include <qspinbox.h>
2829
#include "qgisiface.h"
2930

@@ -103,7 +104,8 @@ void QgsDlgPgBuffer::setGeometryColumn(QString name)
103104
{
104105
txtGeometryColumn->setText(name);
105106
}
106-
void QgsDlgPgBuffer::on_buttonHelp_clicked()
107+
void QgsDlgPgBuffer::on_btnHelp_clicked()
107108
{
108-
qI->openURL("plugins/geoprocessing/buffer/index.html",true);
109+
QgsContextHelp::run(context_id);
110+
// Old call to open help in browser qI->openURL("plugins/geoprocessing/buffer/index.html",true);
109111
}

‎src/plugins/geoprocessing/qgsdlgpgbuffer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ class QgsDlgPgBuffer:public QDialog, private Ui::QgsDlgPgBufferBase
5858
//! Set the geometry column on the dialog
5959
void setGeometryColumn(QString name);
6060
public slots:
61-
void on_buttonHelp_clicked();
61+
void on_btnHelp_clicked();
6262
private:
6363
//! Pointer to the QGIS interface object
6464
QgisIface *qI;
6565
//! Input validator for the buffer distance
6666
QDoubleValidator *distanceValidator;
67+
//! Context help id
68+
static const int context_id = 272873129;
69+
6770
};
6871
#endif // QGSDLGPGBUFFER_H

‎src/plugins/geoprocessing/qgsdlgpgbufferbase.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
<number>6</number>
248248
</property>
249249
<item>
250-
<widget class="QPushButton" name="buttonHelp" >
250+
<widget class="QPushButton" name="btnHelp" >
251251
<property name="text" >
252252
<string>&amp;Help</string>
253253
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.