diff options
author | David Schulz <david.schulz@qt.io> | 2023-03-10 10:26:56 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2023-03-27 08:13:14 +0000 |
commit | eb8c996f49b462f4a26c7b243a098569ac13542a (patch) | |
tree | 4c5b2bbd968acb013e6220f6e3fa8ce2822e48ca /src/plugins/python/pythonsettings.h | |
parent | 3afe94777c9a359a01de93a40bfed15144601770 (diff) | |
download | qt-creator-eb8c996f49b462f4a26c7b243a098569ac13542a.tar.gz |
Python: add create venv option to the wizard
and optimize layouting
Fixes: PYSIDE-2152
Change-Id: If3ecb76c4bac885840f54fd382471ac22a06dee3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/python/pythonsettings.h')
-rw-r--r-- | src/plugins/python/pythonsettings.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/python/pythonsettings.h b/src/plugins/python/pythonsettings.h index 2e27e26616..35939c1ecd 100644 --- a/src/plugins/python/pythonsettings.h +++ b/src/plugins/python/pythonsettings.h @@ -25,13 +25,22 @@ public: static void setInterpreter(const QList<Interpreter> &interpreters, const QString &defaultId); static void addInterpreter(const Interpreter &interpreter, bool isDefault = false); static Interpreter addInterpreter(const Utils::FilePath &interpreterPath, - bool isDefault = false); + bool isDefault = false, + const QString &nameSuffix = {}); static void setPyLSConfiguration(const QString &configuration); static bool pylsEnabled(); static void setPylsEnabled(const bool &enabled); static QString pylsConfiguration(); static PythonSettings *instance(); - static void createVirtualEnvironment(const Utils::FilePath &startDirectory, const Interpreter &defaultInterpreter, const std::function<void (std::optional<Interpreter>)> &callback); + static void createVirtualEnvironmentInteractive( + const Utils::FilePath &startDirectory, + const Interpreter &defaultInterpreter, + const std::function<void(std::optional<Interpreter>)> &callback); + static void createVirtualEnvironment( + const Utils::FilePath &directory, + const Interpreter &interpreter, + const std::function<void(std::optional<Interpreter>)> &callback, + const QString &nameSuffix = {}); static QList<Interpreter> detectPythonVenvs(const Utils::FilePath &path); signals: |