forked from qt-creator/qt-creator
Various: Adapt to change in FilePath
Change-Id: I9218b7378ffb8662338351a551f5809914f18a62 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1230,7 +1230,7 @@ void StringAspect::update()
|
||||
const QString displayedString = d->m_displayFilter ? d->m_displayFilter(value()) : value();
|
||||
|
||||
if (d->m_pathChooserDisplay) {
|
||||
d->m_pathChooserDisplay->setFilePath(FilePath::fromString(displayedString));
|
||||
d->m_pathChooserDisplay->setFilePath(FilePath::fromUserInput(displayedString));
|
||||
d->updateWidgetFromCheckStatus(this, d->m_pathChooserDisplay.data());
|
||||
}
|
||||
|
||||
|
@@ -219,7 +219,7 @@ static QPair<FilePath, QString> clangIncludeDirAndVersion(const FilePath &clangT
|
||||
const FilePath dynamicResourceDir = queryResourceDir(clangToolPath);
|
||||
const QString dynamicVersion = queryVersion(clangToolPath, QueryFailMode::Noisy);
|
||||
if (dynamicResourceDir.isEmpty() || dynamicVersion.isEmpty())
|
||||
return {FilePath::fromString(CLANG_INCLUDE_DIR), QString(CLANG_VERSION)};
|
||||
return {FilePath::fromUserInput(CLANG_INCLUDE_DIR), QString(CLANG_VERSION)};
|
||||
return {dynamicResourceDir / "include", dynamicVersion};
|
||||
}
|
||||
|
||||
|
@@ -120,7 +120,7 @@ bool SquishPluginPrivate::initializeGlobalScripts()
|
||||
|
||||
// FIXME? comma, special characters in paths
|
||||
const Utils::FilePaths globalDirs = Utils::transform(
|
||||
output.trimmed().split(',', Qt::SkipEmptyParts), &Utils::FilePath::fromString);
|
||||
output.trimmed().split(',', Qt::SkipEmptyParts), &Utils::FilePath::fromUserInput);
|
||||
SquishFileHandler::instance()->setSharedFolders(globalDirs);
|
||||
});
|
||||
return true;
|
||||
|
@@ -46,7 +46,7 @@ SquishSettings::SquishSettings()
|
||||
QTC_ASSERT(edit, return false);
|
||||
if (!squishPath.pathChooser()->defaultValidationFunction()(edit, error))
|
||||
return false;
|
||||
const FilePath squishServer = FilePath::fromString(edit->text())
|
||||
const FilePath squishServer = FilePath::fromUserInput(edit->text())
|
||||
.pathAppended(HostOsInfo::withExecutableSuffix("bin/squishserver"));
|
||||
const bool valid = squishServer.isExecutableFile();
|
||||
if (!valid && error)
|
||||
|
@@ -976,7 +976,7 @@ Utils::Links SquishTools::setBreakpoints()
|
||||
for (const GlobalBreakpoint &gb : globalBPs) {
|
||||
if (!gb->isEnabled())
|
||||
continue;
|
||||
const Utils::FilePath filePath = Utils::FilePath::fromString(
|
||||
const Utils::FilePath filePath = Utils::FilePath::fromUserInput(
|
||||
gb->data(BreakpointFileColumn, Qt::DisplayRole).toString());
|
||||
auto fileName = filePath.canonicalPath().toUserOutput();
|
||||
if (fileName.isEmpty())
|
||||
|
Reference in New Issue
Block a user