From 02c43445ced3ef3fecb294f32d7d20840bcc7f54 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Wed, 6 Sep 2017 00:30:46 +0200 Subject: [PATCH] Set the most accurate User Manual page to Project Properties tabs Because some of the tabs in the dialog have a dedicated chapter where they are fully described, better use those links instead of the global one. --- src/app/qgsprojectproperties.cpp | 17 ++++++- src/ui/qgsprojectpropertiesbase.ui | 72 +++++++++++++++--------------- 2 files changed, 52 insertions(+), 37 deletions(-) diff --git a/src/app/qgsprojectproperties.cpp b/src/app/qgsprojectproperties.cpp index 1009c801401..c432ca807aa 100644 --- a/src/app/qgsprojectproperties.cpp +++ b/src/app/qgsprojectproperties.cpp @@ -1984,5 +1984,20 @@ void QgsProjectProperties::scaleItemChanged( QListWidgetItem *changedScaleItem ) void QgsProjectProperties::showHelp() { - QgsHelp::openHelp( QStringLiteral( "introduction/qgis_configuration.html#project-properties" ) ); + QWidget *activeTab = mOptionsStackedWidget->currentWidget(); + QString link = QStringLiteral( "introduction/qgis_configuration.html#project-properties" ); + + if ( activeTab == mTabRelations ) + { + link = QStringLiteral( "working_with_vector/attribute_table.html#creating-one-or-many-to-many-relations" ); + } + else if ( activeTab == mTab_Variables ) + { + link = QStringLiteral( "introduction/general_tools.html#variables" ); + } + else if ( activeTab == mProjOptsCRS ) + { + link = QStringLiteral( "working_with_projections/working_with_projections.html" ); + } + QgsHelp::openHelp( link ); } diff --git a/src/ui/qgsprojectpropertiesbase.ui b/src/ui/qgsprojectpropertiesbase.ui index 2a42b4eb8ce..200433348b9 100755 --- a/src/ui/qgsprojectpropertiesbase.ui +++ b/src/ui/qgsprojectpropertiesbase.ui @@ -230,9 +230,9 @@ - 0 + 1 - + 0 @@ -259,8 +259,8 @@ 0 0 - 685 - 778 + 597 + 656 @@ -743,7 +743,7 @@ - + 0 @@ -770,8 +770,8 @@ 0 0 - 685 - 778 + 683 + 779 @@ -802,7 +802,7 @@ - + 0 @@ -829,8 +829,8 @@ 0 0 - 685 - 778 + 133 + 100 @@ -888,7 +888,7 @@ - + 0 @@ -915,8 +915,8 @@ 0 0 - 685 - 778 + 297 + 532 @@ -1311,7 +1311,7 @@ - + 0 @@ -1338,8 +1338,8 @@ 0 0 - 624 - 2451 + 667 + 2305 @@ -2391,7 +2391,7 @@ - + 0 @@ -2418,8 +2418,8 @@ 0 0 - 165 - 57 + 168 + 46 @@ -2563,9 +2563,9 @@ - QgsColorButton - QToolButton -
qgscolorbutton.h
+ QgsScrollArea + QScrollArea +
qgsscrollarea.h
1
@@ -2581,9 +2581,20 @@ 1 - QgsScrollArea - QScrollArea -
qgsscrollarea.h
+ QgsFilterLineEdit + QLineEdit +
qgsfilterlineedit.h
+
+ + QgsColorButton + QToolButton +
qgscolorbutton.h
+ 1 +
+ + QgsColorSchemeList + QWidget +
qgscolorschemelist.h
1
@@ -2592,17 +2603,6 @@
qgsopacitywidget.h
1
- - QgsFilterLineEdit - QLineEdit -
qgsfilterlineedit.h
-
- - QgsColorSchemeList - QWidget -
qgscolorschemelist.h
- 1 -
QgsCodeEditorPython QWidget