diff --git a/app/dialog/about/about.cpp b/app/dialog/about/about.cpp index 489642c77..a37229a93 100644 --- a/app/dialog/about/about.cpp +++ b/app/dialog/about/about.cpp @@ -64,7 +64,7 @@ AboutDialog::AboutDialog(QWidget *parent) : buttons->setCenterButtons(true); layout->addWidget(buttons); - connect(buttons, SIGNAL(accepted()), this, SLOT(accept())); + connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept); } OLIVE_NAMESPACE_EXIT diff --git a/app/window/mainwindow/mainmenu.cpp b/app/window/mainwindow/mainmenu.cpp index ac2d4b76c..8b6a0d6a0 100644 --- a/app/window/mainwindow/mainmenu.cpp +++ b/app/window/mainwindow/mainmenu.cpp @@ -20,6 +20,7 @@ #include "mainmenu.h" +#include #include #include @@ -274,6 +275,8 @@ MainMenu::MainMenu(MainWindow *parent) : help_menu_ = new Menu(this); help_action_search_item_ = help_menu_->AddItem("actionsearch", this, &MainMenu::ActionSearchTriggered, "/"); help_menu_->addSeparator(); + help_feedback_item_ = help_menu_->AddItem("feedback", this, &MainMenu::HelpFeedbackTriggered); + help_menu_->addSeparator(); help_about_item_ = help_menu_->AddItem("about", Core::instance(), &Core::DialogAboutShow); Retranslate(); @@ -621,6 +624,11 @@ void MainMenu::SequenceCacheInOutTriggered() Core::instance()->CacheActiveSequence(true); } +void MainMenu::HelpFeedbackTriggered() +{ + QDesktopServices::openUrl(QStringLiteral("https://github.com/olive-editor/olive/issues")); +} + void MainMenu::Retranslate() { // MenuShared is not a QWidget and therefore does not receive a LanguageEvent, we use MainMenu's to update it @@ -718,6 +726,7 @@ void MainMenu::Retranslate() // Help menu help_menu_->setTitle(tr("&Help")); help_action_search_item_->setText(tr("A&ction Search")); + help_feedback_item_->setText(tr("Send &Feedback...")); help_about_item_->setText(tr("&About...")); } diff --git a/app/window/mainwindow/mainmenu.h b/app/window/mainwindow/mainmenu.h index bae73de55..f7b4c0ad3 100644 --- a/app/window/mainwindow/mainmenu.h +++ b/app/window/mainwindow/mainmenu.h @@ -180,6 +180,8 @@ private slots: void SequenceCacheTriggered(); void SequenceCacheInOutTriggered(); + void HelpFeedbackTriggered(); + private: /** * @brief Set strings based on the current application language. @@ -276,6 +278,7 @@ private: Menu* help_menu_; QAction* help_action_search_item_; + QAction* help_feedback_item_; QAction* help_about_item_; };