diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-02-07 09:53:19 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-02-09 09:12:29 +0000 |
commit | 3c1a87290e55a343c3193d24da0b9740b96cfdc2 (patch) | |
tree | 5ce9ec442e0ce01a2d18d3f84b053ee3954f8084 | |
parent | 035b8aa5f76b65a105bf4b311339fd43d35a7537 (diff) |
Register some more windows
So they get an entry in the Window menu, and window related shortcuts
are registered correctly.
Change-Id: Ie7e882a009f928f1268fdd312e7fb5362f6a837f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/coreplugin/loggingviewer.cpp | 1 | ||||
-rw-r--r-- | src/plugins/cppeditor/cppeditorplugin.cpp | 1 | ||||
-rw-r--r-- | src/plugins/git/gerrit/gerritplugin.cpp | 1 | ||||
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 2 | ||||
-rw-r--r-- | src/plugins/languageclient/languageclientmanager.cpp | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/loggingviewer.cpp b/src/plugins/coreplugin/loggingviewer.cpp index 25e015e1ac..89046e39b2 100644 --- a/src/plugins/coreplugin/loggingviewer.cpp +++ b/src/plugins/coreplugin/loggingviewer.cpp @@ -737,6 +737,7 @@ void LoggingViewer::showLoggingView() // explicitly disable manager again widget->deleteLater(); }); + ICore::registerWindow(widget, Context("Qtc.LogViewer")); widget->show(); } diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp index 2a8557b298..0bc90d1f1f 100644 --- a/src/plugins/cppeditor/cppeditorplugin.cpp +++ b/src/plugins/cppeditor/cppeditorplugin.cpp @@ -516,6 +516,7 @@ void CppEditorPluginPrivate::inspectCppCodeModel() ICore::raiseWindow(m_cppCodeModelInspectorDialog); } else { m_cppCodeModelInspectorDialog = new CppCodeModelInspectorDialog(ICore::dialogParent()); + ICore::registerWindow(m_cppCodeModelInspectorDialog, Context("CppEditor.Inspector")); m_cppCodeModelInspectorDialog->show(); } } diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index 71ac8da38e..d0904f96d6 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -348,6 +348,7 @@ void GerritPlugin::openView() } GerritDialog *gd = new GerritDialog(m_parameters, m_server, currentRepository(), ICore::dialogParent()); gd->setModal(false); + ICore::registerWindow(gd, Context("Git.Gerrit")); connect(gd, &GerritDialog::fetchDisplay, this, [this](const QSharedPointer<GerritChange> &change) { fetch(change, FetchDisplay); }); connect(gd, &GerritDialog::fetchCherryPick, this, diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 77a948e777..2dbcfeb56f 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1715,6 +1715,7 @@ void GitPluginPrivate::branchList() void GitPluginPrivate::manageRemotes() { showNonModalDialog(currentState().topLevel(), m_remoteDialog); + ICore::registerWindow(m_remoteDialog, Context("Git.Remotes")); } void GitPluginPrivate::initRepository() @@ -1725,6 +1726,7 @@ void GitPluginPrivate::initRepository() void GitPluginPrivate::stashList() { showNonModalDialog(currentState().topLevel(), m_stashDialog); + ICore::registerWindow(m_stashDialog, Context("Git.Stashes")); } void GitPluginPrivate::updateActions(VcsBasePluginPrivate::ActionState as) diff --git a/src/plugins/languageclient/languageclientmanager.cpp b/src/plugins/languageclient/languageclientmanager.cpp index 37d502a945..e76d3ff31b 100644 --- a/src/plugins/languageclient/languageclientmanager.cpp +++ b/src/plugins/languageclient/languageclientmanager.cpp @@ -453,6 +453,7 @@ void LanguageClientManager::showInspector() clientName = client->name(); QWidget *inspectorWidget = instance()->m_inspector.createWidget(clientName); inspectorWidget->setAttribute(Qt::WA_DeleteOnClose); + Core::ICore::registerWindow(inspectorWidget, Core::Context("LanguageClient.Inspector")); inspectorWidget->show(); } |