Skip to content

Commit 7f72d7f

Browse files
committedMay 10, 2013
Add support page link.
Load online help manual from help menu
1 parent 576102b commit 7f72d7f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ void QgisApp::createActions()
10751075

10761076
connect( mActionHelpContents, SIGNAL( triggered() ), this, SLOT( helpContents() ) );
10771077
connect( mActionHelpAPI, SIGNAL( triggered() ), this, SLOT( apiDocumentation() ) );
1078+
connect( mActionNeedSupport, SIGNAL( triggered() ), this, SLOT( supportProviders() ) );
10781079
connect( mActionQgisHomePage, SIGNAL( triggered() ), this, SLOT( helpQgisHomePage() ) );
10791080
connect( mActionCheckQgisVersion, SIGNAL( triggered() ), this, SLOT( checkQgisVersion() ) );
10801081
connect( mActionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
@@ -6556,7 +6557,8 @@ void QgisApp::adjustBrightnessContrast( int delta, bool updateBrightness )
65566557

65576558
void QgisApp::helpContents()
65586559
{
6559-
openURL( "index.html" );
6560+
// We should really ship the HTML version of the docs local too.
6561+
openURL( "http://docs.qgis.org/2.0/html/en/docs/user_manual/index.html", false );
65606562
}
65616563

65626564
void QgisApp::apiDocumentation()
@@ -6571,6 +6573,11 @@ void QgisApp::apiDocumentation()
65716573
}
65726574
}
65736575

6576+
void QgisApp::supportProviders()
6577+
{
6578+
openURL( "http://www.qgis.org/en/commercial-support.html", false );
6579+
}
6580+
65746581
void QgisApp::helpQgisHomePage()
65756582
{
65766583
openURL( "http://qgis.org", false );

‎src/app/qgisapp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
851851
void helpContents();
852852
//! Open the API documentation in a browser
853853
void apiDocumentation();
854+
//! Open the QGIS support page
855+
void supportProviders();
854856
//! Open the QGIS homepage in users browser
855857
void helpQgisHomePage();
856858
//! Open a url in the users configured browser

‎src/ui/qgisapp.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
</property>
201201
<addaction name="mActionHelpContents"/>
202202
<addaction name="mActionHelpAPI"/>
203+
<addaction name="mActionNeedSupport"/>
203204
<addaction name="separator"/>
204205
<addaction name="mActionQgisHomePage"/>
205206
<addaction name="mActionCheckQgisVersion"/>
@@ -2068,6 +2069,11 @@ Acts on currently active editable layer</string>
20682069
<string>Select features using an expression</string>
20692070
</property>
20702071
</action>
2072+
<action name="mActionNeedSupport">
2073+
<property name="text">
2074+
<string>Need Support?</string>
2075+
</property>
2076+
</action>
20712077
</widget>
20722078
<resources>
20732079
<include location="../../images/images.qrc"/>

0 commit comments

Comments
 (0)
Please sign in to comment.