forked from qt-creator/qt-creator
Python: add a python kit aspect
Change-Id: If7aaa52025ec5834a44e9196548fbcc7456c89a8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
20
src/plugins/python/pythonkitaspect.h
Normal file
20
src/plugins/python/pythonkitaspect.h
Normal 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
|
||||
Reference in New Issue
Block a user