mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
[OP-703] Swap "About GCS" and "About plugins" menu items
This commit is contained in:
parent
2d938eaaa3
commit
aa6886c305
@ -799,16 +799,6 @@ void MainWindow::registerDefaultActions()
|
|||||||
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//About Plugins Action
|
|
||||||
tmpaction = new QAction(QIcon(Constants::ICON_PLUGIN), tr("About &Plugins..."), this);
|
|
||||||
cmd = am->registerAction(tmpaction, Constants::ABOUT_PLUGINS, m_globalContext);
|
|
||||||
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
|
||||||
tmpaction->setEnabled(true);
|
|
||||||
#ifdef Q_WS_MAC
|
|
||||||
cmd->action()->setMenuRole(QAction::ApplicationSpecificRole);
|
|
||||||
#endif
|
|
||||||
connect(tmpaction, SIGNAL(triggered()), this, SLOT(aboutPlugins()));
|
|
||||||
|
|
||||||
// About GCS Action
|
// About GCS Action
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
tmpaction = new QAction(QIcon(Constants::ICON_OPENPILOT), tr("About &OpenPilot GCS"), this); // it's convention not to add dots to the about menu
|
tmpaction = new QAction(QIcon(Constants::ICON_OPENPILOT), tr("About &OpenPilot GCS"), this); // it's convention not to add dots to the about menu
|
||||||
@ -823,6 +813,16 @@ void MainWindow::registerDefaultActions()
|
|||||||
#endif
|
#endif
|
||||||
connect(tmpaction, SIGNAL(triggered()), this, SLOT(aboutOpenPilotGCS()));
|
connect(tmpaction, SIGNAL(triggered()), this, SLOT(aboutOpenPilotGCS()));
|
||||||
|
|
||||||
|
//About Plugins Action
|
||||||
|
tmpaction = new QAction(QIcon(Constants::ICON_PLUGIN), tr("About &Plugins..."), this);
|
||||||
|
cmd = am->registerAction(tmpaction, Constants::ABOUT_PLUGINS, m_globalContext);
|
||||||
|
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
||||||
|
tmpaction->setEnabled(true);
|
||||||
|
#ifdef Q_WS_MAC
|
||||||
|
cmd->action()->setMenuRole(QAction::ApplicationSpecificRole);
|
||||||
|
#endif
|
||||||
|
connect(tmpaction, SIGNAL(triggered()), this, SLOT(aboutPlugins()));
|
||||||
|
|
||||||
//Credits Action
|
//Credits Action
|
||||||
tmpaction = new QAction(QIcon(Constants::ICON_PLUGIN), tr("About &Authors..."), this);
|
tmpaction = new QAction(QIcon(Constants::ICON_PLUGIN), tr("About &Authors..."), this);
|
||||||
cmd = am->registerAction(tmpaction, Constants::ABOUT_AUTHORS, m_globalContext);
|
cmd = am->registerAction(tmpaction, Constants::ABOUT_AUTHORS, m_globalContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user