Skip to content
Permalink
Browse files

Enable Topology Checker help button

refs #18550
  • Loading branch information
DelazJ committed Mar 26, 2018
1 parent 7b8603c commit 650f526975dd422fb7b4583e2f24905140349298
Showing with 10 additions and 2 deletions.
  1. +8 −1 src/plugins/topology/rulesDialog.cpp
  2. +2 −1 src/plugins/topology/rulesDialog.h
@@ -26,6 +26,7 @@
#include "qgisinterface.h"
#include "qgsproject.h"
#include "qgsapplication.h"
#include "qgshelp.h"
#include "rulesDialog.h"
#include "topolTest.h"

@@ -52,7 +53,8 @@ rulesDialog::rulesDialog( const QMap<QString, TopologyRule> &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<void ( QComboBox::* )( const QString & )>( &QComboBox::currentIndexChanged ), this, &rulesDialog::updateRuleItems );
connect( mRuleBox, static_cast<void ( QComboBox::* )( const QString & )>( &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" ) );
}
@@ -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();



0 comments on commit 650f526

Please sign in to comment.
You can’t perform that action at this time.