diff --git a/src/plugins/topology/rulesDialog.cpp b/src/plugins/topology/rulesDialog.cpp index 6705b3c91f6..43b77eabf34 100644 --- a/src/plugins/topology/rulesDialog.cpp +++ b/src/plugins/topology/rulesDialog.cpp @@ -26,6 +26,7 @@ #include "qgisinterface.h" #include "qgsproject.h" #include "qgsapplication.h" +#include "qgshelp.h" #include "rulesDialog.h" #include "topolTest.h" @@ -52,6 +53,7 @@ rulesDialog::rulesDialog( const QMap &testMap, QgisInterf // attempt to add new test when OK clicked //connect( buttonBox, SIGNAL( accepted() ), this, SLOT( addTest() ) ); connect( mDeleteTestButton, &QAbstractButton::clicked, this, &rulesDialog::deleteTest ); + connect( buttonBox, &QDialogButtonBox::helpRequested, this, &rulesDialog::showHelp ); connect( mLayer1Box, static_cast( &QComboBox::currentIndexChanged ), this, &rulesDialog::updateRuleItems ); connect( mRuleBox, static_cast( &QComboBox::currentIndexChanged ), this, &rulesDialog::showControls ); @@ -363,3 +365,8 @@ void rulesDialog::clearRules() mRulesTable->removeRow( 0 ); } } + +void rulesDialog::showHelp() +{ + QgsHelp::openHelp( QStringLiteral( "plugins/plugins_topology_checker.html" ) ); +} diff --git a/src/plugins/topology/rulesDialog.h b/src/plugins/topology/rulesDialog.h index f571c83624f..381034576b9 100644 --- a/src/plugins/topology/rulesDialog.h +++ b/src/plugins/topology/rulesDialog.h @@ -104,7 +104,8 @@ class rulesDialog : public QDialog, private Ui::rulesDialog * \param layerId layer ID */ void updateRuleItems( const QString &layerName ); - + //! Open the associated help + void showHelp(); diff --git a/src/plugins/topology/rulesDialog.ui b/src/plugins/topology/rulesDialog.ui index a7b33ed0226..fdf85685f0f 100644 --- a/src/plugins/topology/rulesDialog.ui +++ b/src/plugins/topology/rulesDialog.ui @@ -94,15 +94,15 @@ + + + + Delete Rule + + + - - - - Delete Rule - - -