Python: add a python kit aspect

Change-Id: If7aaa52025ec5834a44e9196548fbcc7456c89a8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2023-10-16 10:21:50 +02:00
parent 28b70672b4
commit b2cb87f06e
5 changed files with 176 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <projectexplorer/runconfigurationaspects.h>
namespace ProjectExplorer { class Kit; }
namespace Python {
class PythonKitAspect
{
public:
static std::optional<ProjectExplorer::Interpreter> python(const ProjectExplorer::Kit *kit);
static void setPython(ProjectExplorer::Kit *k, const QString &interpreterId);
static Utils::Id id();
};
}; // namespace Python