forked from qt-creator/qt-creator
Utils: Replace StringAspect::setFilePath()
... by FilePathAspect::setValue(). Closer to the intented uniform API. Task-number: QTCREATORBUG-29167 Change-Id: Ife26046eaeef2e49108e42a31a2d32e453883e3c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -42,7 +42,7 @@ PySideBuildStep::PySideBuildStep(BuildStepList *bsl, Id id)
|
||||
|
||||
const FilePath pySideProjectPath = FilePath("pyside6-project").searchInPath();
|
||||
if (pySideProjectPath.isExecutableFile())
|
||||
m_pysideProject.setFilePath(pySideProjectPath);
|
||||
m_pysideProject.setValue(pySideProjectPath);
|
||||
|
||||
setCommandLineProvider([this] { return CommandLine(m_pysideProject(), {"build"}); });
|
||||
setWorkingDirectoryProvider([this] {
|
||||
@@ -55,7 +55,7 @@ PySideBuildStep::PySideBuildStep(BuildStepList *bsl, Id id)
|
||||
|
||||
void PySideBuildStep::updatePySideProjectPath(const FilePath &pySideProjectPath)
|
||||
{
|
||||
m_pysideProject.setFilePath(pySideProjectPath);
|
||||
m_pysideProject.setValue(pySideProjectPath);
|
||||
}
|
||||
|
||||
void PySideBuildStep::doRun()
|
||||
|
||||
@@ -133,7 +133,7 @@ void PythonWizardPage::initializePage()
|
||||
const FilePath projectDir = FilePath::fromString(wiz->property("ProjectDirectory").toString());
|
||||
m_createVenv.setValue(!projectDir.isEmpty());
|
||||
if (m_venvPath.filePath().isEmpty())
|
||||
m_venvPath.setFilePath(projectDir.isEmpty() ? FilePath{} : projectDir / "venv");
|
||||
m_venvPath.setValue(projectDir.isEmpty() ? FilePath{} : projectDir / "venv");
|
||||
|
||||
updateInterpreters();
|
||||
updateStateLabel();
|
||||
|
||||
Reference in New Issue
Block a user