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:
@@ -204,7 +204,7 @@ RunConfiguration::RunConfiguration(Target *target, Core::Id id)
|
||||
m_executableGetter = [this] {
|
||||
if (const auto executableAspect = aspect<ExecutableAspect>())
|
||||
return executableAspect->executable();
|
||||
return FileName();
|
||||
return FilePath();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ QString RunConfiguration::disabledReason() const
|
||||
return tr("The Project is currently being parsed.");
|
||||
if (!target()->project()->hasParsingData()) {
|
||||
QString msg = tr("The project could not be fully parsed.");
|
||||
const FileName projectFilePath = buildTargetInfo().projectFilePath;
|
||||
const FilePath projectFilePath = buildTargetInfo().projectFilePath;
|
||||
if (!projectFilePath.exists())
|
||||
msg += '\n' + tr("The project file \"%1\" does not exist.").arg(projectFilePath.toString());
|
||||
return msg;
|
||||
@@ -332,7 +332,7 @@ void RunConfiguration::setExecutableGetter(const RunConfiguration::ExecutableGet
|
||||
m_executableGetter = exeGetter;
|
||||
}
|
||||
|
||||
FileName RunConfiguration::executable() const
|
||||
FilePath RunConfiguration::executable() const
|
||||
{
|
||||
return m_executableGetter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user