Add "Send feedback" to help menu

This commit is contained in:
baydam
2016-09-10 22:41:54 +00:00
parent e841358fe7
commit 6031b57cdd
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -1888,6 +1888,9 @@ void MainWindow::createActions()
// Documentation
docAction = new QAction(tr("Documentation"), this);
connect(docAction, SIGNAL(triggered()), this, SLOT(documentation()));
// Send us feedback
feedbackAction = new QAction(tr("Submit Feedback..."), this);
connect(feedbackAction, SIGNAL(triggered()), this, SLOT(sendFeedback()));
// All available screen as action
updateScreenActions();
@@ -2002,6 +2005,7 @@ void MainWindow::createMenus()
// Help.
helpMenu = menuBar->addMenu(tr("&Help"));
helpMenu->addAction(docAction);
helpMenu->addAction(feedbackAction);
helpMenu->addAction(supportAction);
helpMenu->addAction(bugReportAction);
helpMenu->addSeparator();
+3
View File
@@ -142,6 +142,8 @@ private slots:
// Some help links
void documentation() { QDesktopServices::openUrl(
QUrl("http://mapmap.info/tiki-index.php?page=Documentation#section-documentation")); }
// Send us feedback
void sendFeedback() { QDesktopServices::openUrl(QUrl("mailto:mapmap-list@mapmap.info")); }
// Technical support
void technicalSupport() { QDesktopServices::openUrl(
QUrl("http://mapmap.info/tiki-index.php?page=HomePage#section-support")); }
@@ -413,6 +415,7 @@ private:
QAction *bugReportAction;
QAction *supportAction;
QAction *docAction;
QAction *feedbackAction;
// Screen output action
QList<QAction *> screenActions;