Skip to content
Permalink
Browse files

Add Report a Bug to the Help menu to assist in creating bug reports

Signed-off-by: Werner Macho <werner.macho@gmail.com>
  • Loading branch information
mach0 authored and m-kuhn committed Nov 6, 2015
1 parent eeef84b commit 79616fd8d8285b4eb93adafdfcb97a3e429b832e
Showing with 18 additions and 1 deletion.
  1. +6 −0 src/app/qgisapp.cpp
  2. +3 −0 src/app/qgisapp.h
  3. +9 −1 src/ui/qgisapp.ui
@@ -1480,12 +1480,14 @@ void QgisApp::createActions()
#ifdef Q_OS_MAC
mActionHelpContents->setShortcut( QString( "Ctrl+?" ) );
mActionQgisHomePage->setShortcut( QString() );
mActionReportaBug->setShortcut( QString() );
#endif

mActionHelpContents->setEnabled( QFileInfo( QgsApplication::pkgDataPath() + "/doc/index.html" ).exists() );

connect( mActionHelpContents, SIGNAL( triggered() ), this, SLOT( helpContents() ) );
connect( mActionHelpAPI, SIGNAL( triggered() ), this, SLOT( apiDocumentation() ) );
connect( mActionReportaBug, SIGNAL( triggered() ), this, SLOT( reportaBug() ) );
connect( mActionNeedSupport, SIGNAL( triggered() ), this, SLOT( supportProviders() ) );
connect( mActionQgisHomePage, SIGNAL( triggered() ), this, SLOT( helpQgisHomePage() ) );
connect( mActionCheckQgisVersion, SIGNAL( triggered() ), this, SLOT( checkQgisVersion() ) );
@@ -8106,6 +8108,10 @@ void QgisApp::apiDocumentation()
}
}

void QgisApp::reportaBug()
{
openURL( tr( "https://qgis.org/en/site/getinvolved/development/index.html#bugs-features-and-issues" ), false );
}
void QgisApp::supportProviders()
{
openURL( tr( "https://qgis.org/en/site/forusers/commercial_support.html" ), false );
@@ -400,6 +400,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow

QAction *actionHelpContents() { return mActionHelpContents; }
QAction *actionHelpAPI() { return mActionHelpAPI; }
QAction *actionReportaBug() { return mActionReportaBug; }
QAction *actionQgisHomePage() { return mActionQgisHomePage; }
QAction *actionCheckQgisVersion() { return mActionCheckQgisVersion; }
QAction *actionAbout() { return mActionAbout; }
@@ -952,6 +953,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
void helpContents();
//! Open the API documentation in a browser
void apiDocumentation();
//! Open the Bugtracker page in a browser
void reportaBug();
//! Open the QGIS support page
void supportProviders();
//! Open the QGIS homepage in users browser
@@ -17,7 +17,7 @@
<x>0</x>
<y>0</y>
<width>1050</width>
<height>27</height>
<height>22</height>
</rect>
</property>
<property name="toolTip">
@@ -200,6 +200,9 @@
</property>
<addaction name="mActionHelpContents"/>
<addaction name="mActionHelpAPI"/>
<addaction name="separator"/>
<addaction name="mActionReportaBug"/>
<addaction name="separator"/>
<addaction name="mActionNeedSupport"/>
<addaction name="separator"/>
<addaction name="mActionQgisHomePage"/>
@@ -2376,6 +2379,11 @@ Acts on currently active editable layer</string>
<string>Add circular string by radius</string>
</property>
</action>
<action name="mActionReportaBug">
<property name="text">
<string>Report an issue</string>
</property>
</action>
</widget>
<resources>
<include location="../../images/images.qrc"/>

0 comments on commit 79616fd

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