forked from qt-creator/qt-creator
Move the options to the edit menu
This is more consistent with many other tools. Visual Studio is one of the few tools that have the options under tools. and allows to hide tools in the context of Qt Design Studio. Renaming options to preferences. Change-Id: I4bb554f00005eb415a203faa8bf7340d047b5a84 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -188,7 +188,7 @@ const char G_VIEW_PANES[] = "QtCreator.Group.View.Panes";
|
|||||||
|
|
||||||
// Tools menu groups
|
// Tools menu groups
|
||||||
const char G_TOOLS_DEBUG[] = "QtCreator.Group.Tools.Debug";
|
const char G_TOOLS_DEBUG[] = "QtCreator.Group.Tools.Debug";
|
||||||
const char G_TOOLS_OPTIONS[] = "QtCreator.Group.Tools.Options";
|
const char G_EDIT_PREFERENCES[] = "QtCreator.Group.Edit.Preferences";
|
||||||
|
|
||||||
// Window menu groups
|
// Window menu groups
|
||||||
const char G_WINDOW_SIZE[] = "QtCreator.Group.Window.Size";
|
const char G_WINDOW_SIZE[] = "QtCreator.Group.Window.Size";
|
||||||
|
@@ -717,14 +717,14 @@ void MainWindow::registerDefaultActions()
|
|||||||
connect(m_loggerAction, &QAction::triggered, this, [] { LoggingViewer::showLoggingView(); });
|
connect(m_loggerAction, &QAction::triggered, this, [] { LoggingViewer::showLoggingView(); });
|
||||||
|
|
||||||
// Options Action
|
// Options Action
|
||||||
mtools->appendGroup(Constants::G_TOOLS_OPTIONS);
|
medit->appendGroup(Constants::G_EDIT_PREFERENCES);
|
||||||
mtools->addSeparator(Constants::G_TOOLS_OPTIONS);
|
medit->addSeparator(Constants::G_EDIT_PREFERENCES);
|
||||||
|
|
||||||
m_optionsAction = new QAction(tr("&Options..."), this);
|
m_optionsAction = new QAction(tr("&Preferences..."), this);
|
||||||
m_optionsAction->setMenuRole(QAction::PreferencesRole);
|
m_optionsAction->setMenuRole(QAction::PreferencesRole);
|
||||||
cmd = ActionManager::registerAction(m_optionsAction, Constants::OPTIONS);
|
cmd = ActionManager::registerAction(m_optionsAction, Constants::OPTIONS);
|
||||||
cmd->setDefaultKeySequence(QKeySequence::Preferences);
|
cmd->setDefaultKeySequence(QKeySequence::Preferences);
|
||||||
mtools->addAction(cmd, Constants::G_TOOLS_OPTIONS);
|
medit->addAction(cmd, Constants::G_EDIT_PREFERENCES);
|
||||||
connect(m_optionsAction, &QAction::triggered, this, [] { ICore::showOptionsDialog(Id()); });
|
connect(m_optionsAction, &QAction::triggered, this, [] { ICore::showOptionsDialog(Id()); });
|
||||||
|
|
||||||
mwindow->addSeparator(Constants::G_WINDOW_LIST);
|
mwindow->addSeparator(Constants::G_WINDOW_LIST);
|
||||||
|
Reference in New Issue
Block a user