forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -218,7 +218,7 @@ void DebuggerKitAspect::setup(Kit *k)
|
||||
}
|
||||
} else {
|
||||
// We have an executable path.
|
||||
FileName fileName = FileName::fromUserInput(binary);
|
||||
FilePath fileName = FilePath::fromUserInput(binary);
|
||||
if (item.command() == fileName) {
|
||||
// And it's is the path of this item.
|
||||
level = std::min(item.matchTarget(tcAbi), DebuggerItem::MatchesSomewhat);
|
||||
@@ -270,7 +270,7 @@ void DebuggerKitAspect::fix(Kit *k)
|
||||
return;
|
||||
}
|
||||
|
||||
FileName fileName = FileName::fromUserInput(binary);
|
||||
FilePath fileName = FilePath::fromUserInput(binary);
|
||||
const DebuggerItem *item = DebuggerItemManager::findByCommand(fileName);
|
||||
if (!item) {
|
||||
qWarning("Debugger command %s invalid in kit %s",
|
||||
@@ -357,25 +357,25 @@ Tasks DebuggerKitAspect::validateDebugger(const Kit *k)
|
||||
|
||||
const Core::Id id = ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM;
|
||||
if (errors & NoDebugger)
|
||||
result << Task(Task::Warning, tr("No debugger set up."), FileName(), -1, id);
|
||||
result << Task(Task::Warning, tr("No debugger set up."), FilePath(), -1, id);
|
||||
|
||||
if (errors & DebuggerNotFound)
|
||||
result << Task(Task::Error, tr("Debugger \"%1\" not found.").arg(path),
|
||||
FileName(), -1, id);
|
||||
FilePath(), -1, id);
|
||||
if (errors & DebuggerNotExecutable)
|
||||
result << Task(Task::Error, tr("Debugger \"%1\" not executable.").arg(path), FileName(), -1, id);
|
||||
result << Task(Task::Error, tr("Debugger \"%1\" not executable.").arg(path), FilePath(), -1, id);
|
||||
|
||||
if (errors & DebuggerNeedsAbsolutePath) {
|
||||
const QString message =
|
||||
tr("The debugger location must be given as an "
|
||||
"absolute path (%1).").arg(path);
|
||||
result << Task(Task::Error, message, FileName(), -1, id);
|
||||
result << Task(Task::Error, message, FilePath(), -1, id);
|
||||
}
|
||||
|
||||
if (errors & DebuggerDoesNotMatch) {
|
||||
const QString message = tr("The ABI of the selected debugger does not "
|
||||
"match the toolchain ABI.");
|
||||
result << Task(Task::Warning, message, FileName(), -1, id);
|
||||
result << Task(Task::Warning, message, FilePath(), -1, id);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user