Docker: Add a button to list auto-detected kit items

Helps to understand what's going on.

Change-Id: I5b8c591cbd60227cf250932c8654063236eec05f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-07-15 12:25:23 +02:00
parent 2ff446bd25
commit cb23530798
8 changed files with 91 additions and 1 deletions

View File

@@ -1063,4 +1063,15 @@ void DebuggerItemManager::removeDetectedDebuggers(const QString &detectionSource
*logMessage = logMessages.join('\n');
}
void DebuggerItemManager::listDetectedDebuggers(const QString &detectionSource, QString *logMessage)
{
QTC_ASSERT(logMessage, return);
QStringList logMessages{tr("Debuggers:")};
d->m_model->forItemsAtLevel<2>([detectionSource, &logMessages](DebuggerTreeItem *titem) {
if (titem->m_item.detectionSource() == detectionSource)
logMessages.append(titem->m_item.displayName());
});
*logMessage = logMessages.join('\n');
}
} // namespace Debugger