From 2a9cde9468d5144569277a6a83b34b02b38c122a Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed <fawzi.mohamed@digia.com> Date: Thu, 13 Mar 2014 15:10:44 +0100 Subject: [PATCH] qmljs: adding Qml to companion lanaguages of Unknown Correctly collect qml files when the language is not specified. Change-Id: Ieebfc543108ddb716479ac4524ef14063dd225ea Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> --- src/libs/qmljs/qmljsdocument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/qmljs/qmljsdocument.cpp b/src/libs/qmljs/qmljsdocument.cpp index d347e76a710..fa580cce13a 100644 --- a/src/libs/qmljs/qmljsdocument.cpp +++ b/src/libs/qmljs/qmljsdocument.cpp @@ -159,7 +159,8 @@ QList<Language::Enum> Document::companionLanguages(Language::Enum language) break; case Language::Unknown: langs << Language::JavaScript << Language::Json << Language::QmlProject << Language:: QmlQbs - << Language::QmlTypeInfo << Language::QmlQtQuick1 << Language::QmlQtQuick2 ; + << Language::QmlTypeInfo << Language::QmlQtQuick1 << Language::QmlQtQuick2 + << Language::Qml; break; } return langs; -- GitLab