Python: register python infos to the kits macro expander

... and use the name in the autogenerated kits display name

Change-Id: I928533e6f8238189d64350463897a86ff5512ae7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
David Schulz
2023-12-12 14:40:37 +01:00
parent 8bfb6dbf35
commit 76b61a7993
2 changed files with 25 additions and 1 deletions

View File

@@ -819,7 +819,7 @@ void PythonSettings::addKitsForInterpreter(const Interpreter &interpreter)
[interpreter](Kit *k) {
k->setAutoDetected(true);
k->setAutoDetectionSource("Python");
k->setUnexpandedDisplayName(interpreter.name);
k->setUnexpandedDisplayName("%{Python:Name}");
setRelevantAspectsToKit(k);
PythonKitAspect::setPython(k, interpreter.id);
k->setSticky(PythonKitAspect::id(), true);