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:
@@ -53,7 +53,7 @@ namespace QmakeProjectManager {
|
||||
*/
|
||||
|
||||
QmakePriFileNode::QmakePriFileNode(QmakeProject *project, QmakeProFileNode *qmakeProFileNode,
|
||||
const FileName &filePath, QmakePriFile *pf) :
|
||||
const FilePath &filePath, QmakePriFile *pf) :
|
||||
ProjectNode(filePath),
|
||||
m_project(project),
|
||||
m_qmakeProFileNode(qmakeProFileNode),
|
||||
@@ -227,7 +227,7 @@ FolderNode::AddNewInformation QmakePriFileNode::addNewInformation(const QStringL
|
||||
\class QmakeProFileNode
|
||||
Implements abstract ProjectNode class
|
||||
*/
|
||||
QmakeProFileNode::QmakeProFileNode(QmakeProject *project, const FileName &filePath, QmakeProFile *pf) :
|
||||
QmakeProFileNode::QmakeProFileNode(QmakeProject *project, const FilePath &filePath, QmakeProFile *pf) :
|
||||
QmakePriFileNode(project, this, filePath, pf)
|
||||
{
|
||||
setIsProduct();
|
||||
@@ -281,10 +281,10 @@ QVariant QmakeProFileNode::data(Core::Id role) const
|
||||
if (role == Android::Constants::AndroidSoLibPath) {
|
||||
TargetInformation info = targetInformation();
|
||||
QStringList res = {info.buildDir.toString()};
|
||||
Utils::FileName destDir = info.destDir;
|
||||
Utils::FilePath destDir = info.destDir;
|
||||
if (!destDir.isEmpty()) {
|
||||
if (destDir.toFileInfo().isRelative())
|
||||
destDir = Utils::FileName::fromString(QDir::cleanPath(info.buildDir.toString()
|
||||
destDir = Utils::FilePath::fromString(QDir::cleanPath(info.buildDir.toString()
|
||||
+ '/' + destDir.toString()));
|
||||
res.append(destDir.toString());
|
||||
}
|
||||
@@ -413,10 +413,10 @@ QString QmakeProFileNode::buildDir() const
|
||||
return QString();
|
||||
}
|
||||
|
||||
FileName QmakeProFileNode::buildDir(QmakeBuildConfiguration *bc) const
|
||||
FilePath QmakeProFileNode::buildDir(QmakeBuildConfiguration *bc) const
|
||||
{
|
||||
const QmakeProFile *pro = proFile();
|
||||
return pro ? pro->buildDir(bc) : FileName();
|
||||
return pro ? pro->buildDir(bc) : FilePath();
|
||||
}
|
||||
|
||||
QString QmakeProFileNode::objectExtension() const
|
||||
|
||||
Reference in New Issue
Block a user