Help->Report Bug...

--HG--
branch : develop
This commit is contained in:
dismine 2014-11-06 15:07:08 +02:00
parent 3c50bec8a8
commit 5210f757ee
3 changed files with 21 additions and 1 deletions

View file

@ -58,6 +58,7 @@
#include <QTimer>
#include <QtGlobal>
#include <QDesktopWidget>
#include <QDesktopServices>
//---------------------------------------------------------------------------------------------------------------------
/**
@ -1373,6 +1374,12 @@ void MainWindow::Preferences()
}
}
//---------------------------------------------------------------------------------------------------------------------
void MainWindow::RepotBug()
{
QDesktopServices::openUrl(QUrl("https://bitbucket.org/dismine/valentina/issues/new"));
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief Clear reset to default window.
@ -2107,6 +2114,7 @@ void MainWindow::CreateActions()
connect(ui->actionAbout_Valentina, &QAction::triggered, this, &MainWindow::About);
connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close);
connect(ui->actionPreferences, &QAction::triggered, this, &MainWindow::Preferences);
connect(ui->actionRepotBug, &QAction::triggered, this, &MainWindow::RepotBug);
connect(ui->actionPattern_properties, &QAction::triggered, this, &MainWindow::PatternProperties);
ui->actionPattern_properties->setEnabled(false);
connect(ui->actionEdit_pattern_code, &QAction::triggered, this, &MainWindow::EditPatternCode);

View file

@ -76,6 +76,7 @@ public slots:
bool Save();
void Open();
void Preferences();
void RepotBug();
void NewPattern();
void ShowToolTip(const QString &toolTip);
void OpenRecentFile();

View file

@ -779,6 +779,7 @@
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="actionRepotBug"/>
<addaction name="actionAbout_Qt"/>
<addaction name="actionAbout_Valentina"/>
</widget>
@ -1229,7 +1230,9 @@
<bool>false</bool>
</property>
<property name="icon">
<iconset theme="process-stop"/>
<iconset theme="process-stop">
<normaloff/>
</iconset>
</property>
<property name="text">
<string>Stop</string>
@ -1238,6 +1241,14 @@
<string>Stop using tool</string>
</property>
</action>
<action name="actionRepotBug">
<property name="text">
<string>Repot Bug...</string>
</property>
<property name="toolTip">
<string>Report bug</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>