mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Add "Send feedback" to help menu
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user