Commit 3ab78b34 authored by Daniel Teske's avatar Daniel Teske
Browse files

Qt4ProjectManager: .QML are not qml files



Task-number: QTCREATORBUG-9191

Change-Id: I989f295ed037e92be692c52fd3f8a2c322819e12
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 849534ec
......@@ -1263,11 +1263,11 @@ QSet<Utils::FileName> Qt4PriFileNode::filterFilesProVariables(ProjectExplorer::F
QSet<Utils::FileName> result;
if (fileType == ProjectExplorer::QMLType) {
foreach (const Utils::FileName &file, files)
if (file.endsWith(QLatin1String(".qml")))
if (file.toString().endsWith(QLatin1String(".qml")))
result << file;
} else {
foreach (const Utils::FileName &file, files)
if (!file.endsWith(QLatin1String(".qml")))
if (!file.toString().endsWith(QLatin1String(".qml")))
result << file;
}
return result;
......@@ -1280,11 +1280,11 @@ QSet<Utils::FileName> Qt4PriFileNode::filterFilesRecursiveEnumerata(ProjectExplo
return result;
if (fileType == ProjectExplorer::QMLType) {
foreach (const Utils::FileName &file, files)
if (file.endsWith(QLatin1String(".qml")))
if (file.toString().endsWith(QLatin1String(".qml")))
result << file;
} else {
foreach (const Utils::FileName &file, files)
if (!file.endsWith(QLatin1String(".qml")))
if (!file.toString().endsWith(QLatin1String(".qml")))
result << file;
}
return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment