forked from qt-creator/qt-creator
Utils: add FilePath::completeBaseName
Removing some FilePath::toFileInfo() calls again. Change-Id: I6610beebf2c30754fde525b71f4c4a34ceb5e30b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -165,7 +165,7 @@ FilePath QmakePriFile::directoryPath() const
|
||||
|
||||
QString QmakePriFile::displayName() const
|
||||
{
|
||||
return filePath().toFileInfo().completeBaseName();
|
||||
return filePath().completeBaseName();
|
||||
}
|
||||
|
||||
QmakePriFile *QmakePriFile::parent() const
|
||||
@@ -2068,13 +2068,13 @@ FilePaths QmakeProFile::generatedFiles(const FilePath &buildDir,
|
||||
if (location.isEmpty())
|
||||
return { };
|
||||
location = location.pathAppended("ui_"
|
||||
+ sourceFile.toFileInfo().completeBaseName()
|
||||
+ sourceFile.completeBaseName()
|
||||
+ singleVariableValue(Variable::HeaderExtension));
|
||||
return { Utils::FilePath::fromString(QDir::cleanPath(location.toString())) };
|
||||
} else if (sourceFileType == FileType::StateChart) {
|
||||
if (buildDir.isEmpty())
|
||||
return { };
|
||||
const FilePath location = buildDir.pathAppended(sourceFile.toFileInfo().completeBaseName());
|
||||
const FilePath location = buildDir.pathAppended(sourceFile.completeBaseName());
|
||||
return {
|
||||
location.stringAppended(singleVariableValue(Variable::HeaderExtension)),
|
||||
location.stringAppended(singleVariableValue(Variable::CppExtension))
|
||||
|
||||
Reference in New Issue
Block a user