forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -1428,17 +1428,17 @@ QString QmakeProject::disabledReasonForRunConfiguration(const QString &proFilePa
|
||||
{
|
||||
if (!QFileInfo::exists(proFilePath))
|
||||
return tr("The .pro file \"%1\" does not exist.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
.arg(FileName::fromString(proFilePath).fileName());
|
||||
|
||||
if (!m_rootProjectNode) // Shutting down
|
||||
return QString();
|
||||
|
||||
if (!m_rootProjectNode->findProFileFor(proFilePath))
|
||||
return tr("The .pro file \"%1\" is not part of the project.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
.arg(FileName::fromString(proFilePath).fileName());
|
||||
|
||||
return tr("The .pro file \"%1\" could not be parsed.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
.arg(FileName::fromString(proFilePath).fileName());
|
||||
}
|
||||
|
||||
QString QmakeProject::buildNameFor(const Kit *k)
|
||||
|
||||
Reference in New Issue
Block a user