forked from qt-creator/qt-creator
qmakeproject: set qmljs language preserving other languages
Change-Id: Ifebe972a20359841d99e6a892776811692c8d092 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
3c3ded74fe
commit
7cb9b0cfaa
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user