Qt 5.12 deprecation fixes (#1003)

This commit is contained in:
Malte Langkabel
2020-08-04 18:13:18 +02:00
committed by GitHub
parent ca890978ab
commit e946c475c4
43 changed files with 190 additions and 168 deletions
@@ -63,12 +63,13 @@ void QtProjectWizardContentPathPythonEnvironment::onTextChanged(const QString& t
m_resultLabel->setText("Checking validity of Python environment...");
std::thread([=]() {
std::pair<int, std::string> out = utility::executeProcess(
"\"" + ResourcePaths::getPythonPath().str() +
"SourcetrailPythonIndexer\" check-environment " + "--environment-path \"" +
utility::getExpandedAndAbsolutePath(
ResourcePaths::getPythonPath().wstr().append(L"SourcetrailPythonIndexer"),
std::vector<std::wstring>{
L"check-environment",
L"--environment-path " + utility::getExpandedAndAbsolutePath(
FilePath(text.toStdWString()), m_settings->getProjectDirectoryPath())
.str() +
"\"",
.wstr()
},
FilePath(),
5000);
m_onQtThread([=]() {