diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index a72d9cf05..f32764cfe 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1433,6 +1433,13 @@ void MainWindow::RepotBug() QDesktopServices::openUrl(QUrl("https://bitbucket.org/dismine/valentina/issues/new")); } +//--------------------------------------------------------------------------------------------------------------------- +void MainWindow::OnlineHelp() +{ + qCDebug(vMainWindow)<<"Showing online help"; + QDesktopServices::openUrl(QUrl("https://bitbucket.org/dismine/valentina/wiki/manual/Content")); +} + //--------------------------------------------------------------------------------------------------------------------- /** * @brief Clear reset to default window. @@ -2212,6 +2219,7 @@ void MainWindow::CreateActions() 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->actionOnlineHelp, &QAction::triggered, this, &MainWindow::OnlineHelp); 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 f555a21ad..0463bd06c 100644 --- a/src/app/mainwindow.h +++ b/src/app/mainwindow.h @@ -77,6 +77,7 @@ public slots: void Open(); void Preferences(); void RepotBug(); + void OnlineHelp(); void NewPattern(); void ShowToolTip(const QString &toolTip); void OpenRecentFile(); diff --git a/src/app/mainwindow.ui b/src/app/mainwindow.ui index d3622ec64..688b6463f 100644 --- a/src/app/mainwindow.ui +++ b/src/app/mainwindow.ui @@ -779,6 +779,7 @@ &Help + @@ -1261,6 +1262,17 @@ Close window + + + + + + Online help + + + Show online help + + diff --git a/src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png b/src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png new file mode 100644 index 000000000..0aa517949 Binary files /dev/null and b/src/app/share/resources/icons/win.icon.theme/16x16/actions/help-contents.png differ diff --git a/src/app/share/resources/icons/win.icon.theme/24x24/actions/help-contents.png b/src/app/share/resources/icons/win.icon.theme/24x24/actions/help-contents.png new file mode 100644 index 000000000..be8096301 Binary files /dev/null and b/src/app/share/resources/icons/win.icon.theme/24x24/actions/help-contents.png differ diff --git a/src/app/share/resources/icons/win.icon.theme/32x32/actions/help-contents.png b/src/app/share/resources/icons/win.icon.theme/32x32/actions/help-contents.png new file mode 100644 index 000000000..756c0d5fc Binary files /dev/null and b/src/app/share/resources/icons/win.icon.theme/32x32/actions/help-contents.png differ diff --git a/src/app/share/resources/theme.qrc b/src/app/share/resources/theme.qrc index 0b7d3102e..9a816625f 100644 --- a/src/app/share/resources/theme.qrc +++ b/src/app/share/resources/theme.qrc @@ -58,5 +58,8 @@ icons/win.icon.theme/16x16/actions/edit-delete.png icons/win.icon.theme/24x24/actions/edit-delete.png icons/win.icon.theme/32x32/actions/edit-delete.png + icons/win.icon.theme/16x16/actions/help-contents.png + icons/win.icon.theme/24x24/actions/help-contents.png + icons/win.icon.theme/32x32/actions/help-contents.png