Skip to content

Commit 79616fd

Browse files
mach0m-kuhn
authored andcommitted
Add Report a Bug to the Help menu to assist in creating bug reports
Signed-off-by: Werner Macho <werner.macho@gmail.com>
1 parent eeef84b commit 79616fd

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/app/qgisapp.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1480,12 +1480,14 @@ void QgisApp::createActions()
14801480
#ifdef Q_OS_MAC
14811481
mActionHelpContents->setShortcut( QString( "Ctrl+?" ) );
14821482
mActionQgisHomePage->setShortcut( QString() );
1483+
mActionReportaBug->setShortcut( QString() );
14831484
#endif
14841485

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

14871488
connect( mActionHelpContents, SIGNAL( triggered() ), this, SLOT( helpContents() ) );
14881489
connect( mActionHelpAPI, SIGNAL( triggered() ), this, SLOT( apiDocumentation() ) );
1490+
connect( mActionReportaBug, SIGNAL( triggered() ), this, SLOT( reportaBug() ) );
14891491
connect( mActionNeedSupport, SIGNAL( triggered() ), this, SLOT( supportProviders() ) );
14901492
connect( mActionQgisHomePage, SIGNAL( triggered() ), this, SLOT( helpQgisHomePage() ) );
14911493
connect( mActionCheckQgisVersion, SIGNAL( triggered() ), this, SLOT( checkQgisVersion() ) );
@@ -8106,6 +8108,10 @@ void QgisApp::apiDocumentation()
81068108
}
81078109
}
81088110

8111+
void QgisApp::reportaBug()
8112+
{
8113+
openURL( tr( "https://qgis.org/en/site/getinvolved/development/index.html#bugs-features-and-issues" ), false );
8114+
}
81098115
void QgisApp::supportProviders()
81108116
{
81118117
openURL( tr( "https://qgis.org/en/site/forusers/commercial_support.html" ), false );

src/app/qgisapp.h

+3
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
400400

401401
QAction *actionHelpContents() { return mActionHelpContents; }
402402
QAction *actionHelpAPI() { return mActionHelpAPI; }
403+
QAction *actionReportaBug() { return mActionReportaBug; }
403404
QAction *actionQgisHomePage() { return mActionQgisHomePage; }
404405
QAction *actionCheckQgisVersion() { return mActionCheckQgisVersion; }
405406
QAction *actionAbout() { return mActionAbout; }
@@ -952,6 +953,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
952953
void helpContents();
953954
//! Open the API documentation in a browser
954955
void apiDocumentation();
956+
//! Open the Bugtracker page in a browser
957+
void reportaBug();
955958
//! Open the QGIS support page
956959
void supportProviders();
957960
//! Open the QGIS homepage in users browser

src/ui/qgisapp.ui

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<x>0</x>
1818
<y>0</y>
1919
<width>1050</width>
20-
<height>27</height>
20+
<height>22</height>
2121
</rect>
2222
</property>
2323
<property name="toolTip">
@@ -200,6 +200,9 @@
200200
</property>
201201
<addaction name="mActionHelpContents"/>
202202
<addaction name="mActionHelpAPI"/>
203+
<addaction name="separator"/>
204+
<addaction name="mActionReportaBug"/>
205+
<addaction name="separator"/>
203206
<addaction name="mActionNeedSupport"/>
204207
<addaction name="separator"/>
205208
<addaction name="mActionQgisHomePage"/>
@@ -2376,6 +2379,11 @@ Acts on currently active editable layer</string>
23762379
<string>Add circular string by radius</string>
23772380
</property>
23782381
</action>
2382+
<action name="mActionReportaBug">
2383+
<property name="text">
2384+
<string>Report an issue</string>
2385+
</property>
2386+
</action>
23792387
</widget>
23802388
<resources>
23812389
<include location="../../images/images.qrc"/>

0 commit comments

Comments
 (0)