diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index 5414ce7576ddff925bc6e0fcac879c3f3824ffaf..92954b6be8e4f04883660e0328a9415091f658d3 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -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;