qmakeproject: set qmljs language preserving other languages

Change-Id: Ifebe972a20359841d99e6a892776811692c8d092
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Fawzi Mohamed
2014-11-13 12:31:47 +01:00
committed by Fawzi Mohamed
parent 3c3ded74fe
commit 7cb9b0cfaa

View File

@@ -649,10 +649,8 @@ void QmakeProject::updateQmlJSCodeModel()
// library then chances of the project being a QML project is quite high.
// This assumption fails when there are no QDeclarativeEngine/QDeclarativeView (QtQuick 1)
// or QQmlEngine/QQuickView (QtQuick 2) instances.
Core::Context pl(ProjectExplorer::Constants::LANG_CXX);
if (hasQmlLib)
pl.add(ProjectExplorer::Constants::LANG_QMLJS);
setProjectLanguages(pl);
addProjectLanguage(ProjectExplorer::Constants::LANG_QMLJS);
projectInfo.activeResourceFiles.removeDuplicates();
projectInfo.allResourceFiles.removeDuplicates();