Set the most accurate User Manual page to Options tabs

Because some of the tabs in Options dialog have a dedicated chapter where they are fully described, better use those links instead of the global one.
This commit is contained in:
Harrissou Sant-anna 2017-09-05 22:02:58 +02:00 committed by Nyall Dawson
parent 9e36fd9c6d
commit 34b9ae293d

View File

@ -2354,5 +2354,20 @@ void QgsOptions::setZoomFactorValue()
void QgsOptions::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "introduction/qgis_configuration.html#options" ) );
QWidget *activeTab = mOptionsStackedWidget->currentWidget();
QString link = QStringLiteral( "introduction/qgis_configuration.html" );
if ( activeTab == mOptionsPageAuth )
{
link = QStringLiteral( "auth_system/index.html" );
}
else if ( activeTab == mOptionsPageVariables )
{
link = QStringLiteral( "introduction/general_tools.html#variables" );
}
else if ( activeTab == mOptionsPageCRS )
{
link = QStringLiteral( "working_with_projections/working_with_projections.html" );
}
QgsHelp::openHelp( link );
}