summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonsettings.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-03-16 09:35:02 +0100
committerDavid Schulz <david.schulz@qt.io>2022-03-28 12:15:15 +0000
commit7cb3a726d481b232278d6199bba3a7404abd720d (patch)
tree1a81b4bb62d11be40e2b37766b440e28f25c7d5c /src/plugins/python/pythonsettings.h
parent9f3941cda3443f6c3a3f2829b9c62081855e7a23 (diff)
downloadqt-creator-7cb3a726d481b232278d6199bba3a7404abd720d.tar.gz
Python: add PySide installation check on document open
Checks if the document imports PySide and whether the selected python interpreter can find a PySide installation. If not show a global info bar that can install PySide via pip like the python lsp server. Task-number: PYSIDE-1742 Change-Id: I02c0d5f6eb268f3d8826d4fb9d9ec3c7c48b8638 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonsettings.h')
-rw-r--r--src/plugins/python/pythonsettings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/python/pythonsettings.h b/src/plugins/python/pythonsettings.h
index 0ef6c62a0f..7f6ce31447 100644
--- a/src/plugins/python/pythonsettings.h
+++ b/src/plugins/python/pythonsettings.h
@@ -62,6 +62,7 @@ public:
static QList<Interpreter> interpreters();
static Interpreter defaultInterpreter();
+ static Interpreter interpreter(const QString &interpreterId);
static void setInterpreter(const QList<Interpreter> &interpreters, const QString &defaultId);
static void addInterpreter(const Interpreter &interpreter, bool isDefault = false);
static PythonSettings *instance();