diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-10-31 15:27:26 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-11-01 07:28:26 +0000 |
commit | 6e8087a1b1ea3beb07317f1331cfb13a16722e9b (patch) | |
tree | 6218309c2ddd49fa6f9a1e11bcd07f5bb754d71a /src/plugins/coreplugin/mainwindow.cpp | |
parent | d9503cdf89479de6e4e2ebd66c3e896e2d268c2e (diff) | |
download | qt-creator-6e8087a1b1ea3beb07317f1331cfb13a16722e9b.tar.gz |
macOS: Fix missing "Search" item in help menu
Define the menu as the help menu directly in the the NSApplication,
since the OS built-in heuristics based on the menu name easily fails.
Fixes: QTCREATORBUG-24751
Change-Id: I9aa50a46099e295ec0c38ee8a9e88d75d41c74ad
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/coreplugin/mainwindow.cpp')
-rw-r--r-- | src/plugins/coreplugin/mainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 54c0b38a72..e71b0b1fc2 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -514,6 +514,7 @@ void MainWindow::registerDefaultContainers() ac = ActionManager::createMenu(Constants::M_HELP); menubar->addMenu(ac, Constants::G_HELP); ac->menu()->setTitle(tr("&Help")); + Theme::setHelpMenu(ac->menu()); ac->appendGroup(Constants::G_HELP_HELP); ac->appendGroup(Constants::G_HELP_SUPPORT); ac->appendGroup(Constants::G_HELP_ABOUT); |