aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythoneditor.cpp
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/pythoneditor.cpp
parent9f3941cda3443f6c3a3f2829b9c62081855e7a23 (diff)
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/pythoneditor.cpp')
-rw-r--r--src/plugins/python/pythoneditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp
index 264ef809e56..6344e52f9b0 100644
--- a/src/plugins/python/pythoneditor.cpp
+++ b/src/plugins/python/pythoneditor.cpp
@@ -25,6 +25,7 @@
#include "pythoneditor.h"
+#include "pyside.h"
#include "pythonconstants.h"
#include "pythonhighlighter.h"
#include "pythonindenter.h"
@@ -118,6 +119,7 @@ public:
return;
PyLSConfigureAssistant::instance()->openDocumentWithPython(python, this);
+ PySideInstaller::instance()->checkPySideInstallation(python, this);
}
};