Add Report a Bug Help menu option

This commit is contained in:
Mark Watkins 2016-04-03 22:48:24 +10:00
parent 7a93ef4933
commit 826b9bb175
3 changed files with 20 additions and 3 deletions

View File

@ -2790,3 +2790,11 @@ void MainWindow::on_mainsplitter_splitterMoved(int, int)
{
p_profile->appearance->setRightPanelWidth(ui->mainsplitter->sizes()[1]);
}
#include "translation.h"
void MainWindow::on_actionReport_a_Bug_triggered()
{
QSettings settings(getDeveloperName(), getAppName());
QString language = settings.value(LangSetting).toString();
QDesktopServices::openUrl(QUrl(QString("http://sleepyhead.jedimark.net/report_bugs.php?lang=%1").arg(language)));
}

View File

@ -339,6 +339,8 @@ class MainWindow : public QMainWindow
void on_mainsplitter_splitterMoved(int pos, int index);
void on_actionReport_a_Bug_triggered();
private:
void importCPAPBackups();
void finishCPAPImport();

View File

@ -1896,8 +1896,8 @@ border: 2px solid #56789a; border-radius: 30px;
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>30</height>
<width>77</width>
<height>236</height>
</rect>
</property>
<property name="palette">
@ -3044,7 +3044,7 @@ border-radius: 10px;
<rect>
<x>0</x>
<y>0</y>
<width>76</width>
<width>77</width>
<height>236</height>
</rect>
</property>
@ -3176,6 +3176,8 @@ border-radius: 10px;
<addaction name="actionHelp_Support_SleepyHead_Development"/>
<addaction name="separator"/>
<addaction name="actionCheck_for_Updates"/>
<addaction name="separator"/>
<addaction name="actionReport_a_Bug"/>
<addaction name="action_About"/>
</widget>
<widget class="QMenu" name="menu_Data">
@ -3523,6 +3525,11 @@ border-radius: 10px;
<string>Export for Review</string>
</property>
</action>
<action name="actionReport_a_Bug">
<property name="text">
<string>Report a Bug</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>