Commit 7cb9b0cf authored by Fawzi Mohamed's avatar Fawzi Mohamed Committed by Fawzi Mohamed
Browse files

qmakeproject: set qmljs language preserving other languages



Change-Id: Ifebe972a20359841d99e6a892776811692c8d092
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 3c3ded74
......@@ -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();
......
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