From 5210f757eeb50886af511797d72576d18e98b558 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 6 Nov 2014 15:07:08 +0200 Subject: [PATCH] Help->Report Bug... --HG-- branch : develop --- src/app/mainwindow.cpp | 8 ++++++++ src/app/mainwindow.h | 1 + src/app/mainwindow.ui | 13 ++++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 0f930a278..94f65cb3e 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -58,6 +58,7 @@ #include #include #include +#include //--------------------------------------------------------------------------------------------------------------------- /** @@ -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); diff --git a/src/app/mainwindow.h b/src/app/mainwindow.h index d12419374..498ab2f52 100644 --- a/src/app/mainwindow.h +++ b/src/app/mainwindow.h @@ -76,6 +76,7 @@ public slots: bool Save(); void Open(); void Preferences(); + void RepotBug(); void NewPattern(); void ShowToolTip(const QString &toolTip); void OpenRecentFile(); diff --git a/src/app/mainwindow.ui b/src/app/mainwindow.ui index 0d78e233d..357b2b31f 100644 --- a/src/app/mainwindow.ui +++ b/src/app/mainwindow.ui @@ -779,6 +779,7 @@ &Help + @@ -1229,7 +1230,9 @@ false - + + + Stop @@ -1238,6 +1241,14 @@ Stop using tool + + + Repot Bug... + + + Report bug + +