ClangTools: remove arrow from analyze current file button

This is now in line with the other menu buttons in the editor toolbar
like the language client button or the python interpreter and repl
buttons.

Change-Id: If22d3e9c87274eee2fefe8e30f6b0648be5d60c9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
David Schulz
2023-01-23 10:47:39 +01:00
parent 9db70d8810
commit c651a1e290

View File

@@ -167,6 +167,7 @@ void ClangToolsPlugin::registerAnalyzeActions()
button->setPopupMode(QToolButton::InstantPopup); button->setPopupMode(QToolButton::InstantPopup);
button->setIcon(icon); button->setIcon(icon);
button->setToolTip(Tr::tr("Analyze File...")); button->setToolTip(Tr::tr("Analyze File..."));
button->setProperty("noArrow", true);
widget->toolBar()->addWidget(button); widget->toolBar()->addWidget(button);
const auto toolsMenu = new QMenu(widget); const auto toolsMenu = new QMenu(widget);
button->setMenu(toolsMenu); button->setMenu(toolsMenu);