Python: collect pip package info in another thread

Change-Id: I70a9066fddf812ce9bde5467913bb2bad98e2d0e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2023-01-25 12:29:08 +01:00
parent b05a34b81e
commit 471e67d1a6
4 changed files with 164 additions and 78 deletions

View File

@@ -6,8 +6,11 @@
#include <projectexplorer/runconfiguration.h>
#include <projectexplorer/runcontrol.h>
#include <QFutureWatcher>
namespace Python::Internal {
class PythonRunConfigurationPrivate;
class PySideUicExtraCompiler;
class PythonRunConfiguration : public ProjectExplorer::RunConfiguration
@@ -20,11 +23,7 @@ public:
QList<PySideUicExtraCompiler *> extraCompilers() const;
private:
void checkForPySide(const Utils::FilePath &python);
void updateExtraCompilers();
Utils::FilePath m_pySideUicPath;
QList<PySideUicExtraCompiler *> m_extraCompilers;
PythonRunConfigurationPrivate *d = nullptr;
};
class PythonRunConfigurationFactory : public ProjectExplorer::RunConfigurationFactory