MesonProjectManager: Rename addMesonTool() overload

Rename it to addMesonToolHelper(). In this way addMesonTool
is unique and may be used inside connections without QOverload.

Change-Id: I3f109b5da3115e8275c05e9daec07192bef32ef7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-12-12 09:10:54 +01:00
parent 4fc5483c74
commit e5e31e5732
3 changed files with 5 additions and 6 deletions

View File

@@ -21,9 +21,8 @@ ToolsModel::ToolsModel()
new Utils::StaticTreeItem({ProjectExplorer::Constants::msgAutoDetected()},
{ProjectExplorer::Constants::msgAutoDetectedToolTip()}));
rootItem()->appendChild(new Utils::StaticTreeItem(ProjectExplorer::Constants::msgManual()));
for (const auto &tool : MesonTools::tools()) {
addMesonTool(tool);
}
for (const auto &tool : MesonTools::tools())
addMesonToolHelper(tool);
}
ToolTreeItem *ToolsModel::mesoneToolTreeItem(const QModelIndex &index) const
@@ -73,7 +72,7 @@ void ToolsModel::apply()
}
}
void ToolsModel::addMesonTool(const MesonTools::Tool_t &tool)
void ToolsModel::addMesonToolHelper(const MesonTools::Tool_t &tool)
{
if (tool->autoDetected())
autoDetectedGroup()->appendChild(new ToolTreeItem(tool));