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:
@@ -232,7 +232,7 @@ QDebug operator << (QDebug &dbg, const Dialect &dialect)
|
||||
return dbg;
|
||||
}
|
||||
|
||||
PathAndLanguage::PathAndLanguage(const Utils::FileName &path, Dialect language)
|
||||
PathAndLanguage::PathAndLanguage(const Utils::FilePath &path, Dialect language)
|
||||
: m_path(path), m_language(language)
|
||||
{ }
|
||||
|
||||
@@ -293,11 +293,11 @@ void PathsAndLanguages::compact()
|
||||
return;
|
||||
|
||||
int oldCompactionPlace = 0;
|
||||
Utils::FileName oldPath = m_list.first().path();
|
||||
Utils::FilePath oldPath = m_list.first().path();
|
||||
QList<PathAndLanguage> compactedList;
|
||||
bool restrictFailed = false;
|
||||
for (int i = 1; i < m_list.length(); ++i) {
|
||||
Utils::FileName newPath = m_list.at(i).path();
|
||||
Utils::FilePath newPath = m_list.at(i).path();
|
||||
if (newPath == oldPath) {
|
||||
int newCompactionPlace = i - 1;
|
||||
compactedList << m_list.mid(oldCompactionPlace, newCompactionPlace - oldCompactionPlace);
|
||||
|
||||
Reference in New Issue
Block a user