From 53cd1f1ea222bb5abff4c7447f686b7225bc5431 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 25 May 2022 19:54:26 +0200 Subject: [PATCH] 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: Reviewed-by: hjk Reviewed-by: Alessandro Portale --- src/plugins/coreplugin/coreconstants.h | 2 +- src/plugins/coreplugin/mainwindow.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/coreplugin/coreconstants.h b/src/plugins/coreplugin/coreconstants.h index 96234c16c33..77ada82f061 100644 --- a/src/plugins/coreplugin/coreconstants.h +++ b/src/plugins/coreplugin/coreconstants.h @@ -188,7 +188,7 @@ const char G_VIEW_PANES[] = "QtCreator.Group.View.Panes"; // Tools menu groups 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 const char G_WINDOW_SIZE[] = "QtCreator.Group.Window.Size"; diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 1fa6d4be141..4bd44b5dddc 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -717,14 +717,14 @@ void MainWindow::registerDefaultActions() connect(m_loggerAction, &QAction::triggered, this, [] { LoggingViewer::showLoggingView(); }); // Options Action - mtools->appendGroup(Constants::G_TOOLS_OPTIONS); - mtools->addSeparator(Constants::G_TOOLS_OPTIONS); + medit->appendGroup(Constants::G_EDIT_PREFERENCES); + 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); cmd = ActionManager::registerAction(m_optionsAction, Constants::OPTIONS); 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()); }); mwindow->addSeparator(Constants::G_WINDOW_LIST);