forked from qt-creator/qt-creator
More FileName::appendPath() -> .pathAppended()
Change-Id: I403d34e4f52f758339c158efc7a11fd329e3e043 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1942,15 +1942,14 @@ FileNameList QmakeProFile::generatedFiles(const FileName &buildDir,
|
||||
location = buildDir;
|
||||
if (location.isEmpty())
|
||||
return { };
|
||||
location.appendPath(QLatin1String("ui_")
|
||||
+ sourceFile.toFileInfo().completeBaseName()
|
||||
+ singleVariableValue(Variable::HeaderExtension));
|
||||
location = location.pathAppended("ui_"
|
||||
+ sourceFile.toFileInfo().completeBaseName()
|
||||
+ singleVariableValue(Variable::HeaderExtension));
|
||||
return { Utils::FileName::fromString(QDir::cleanPath(location.toString())) };
|
||||
} else if (sourceFileType == FileType::StateChart) {
|
||||
if (buildDir.isEmpty())
|
||||
return { };
|
||||
FileName location = buildDir;
|
||||
location.appendPath(sourceFile.toFileInfo().completeBaseName());
|
||||
const FileName location = buildDir.pathAppended(sourceFile.toFileInfo().completeBaseName());
|
||||
return {
|
||||
location.stringAppended(singleVariableValue(Variable::HeaderExtension)),
|
||||
location.stringAppended(singleVariableValue(Variable::CppExtension))
|
||||
|
||||
Reference in New Issue
Block a user