From cb5503715e10f33504c9f922cbd56adb6f53efe7 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Wed, 20 Feb 2013 22:36:16 +0100 Subject: [PATCH] Qml Debugging: Setting debug option for QML applications Skip checking for QML files. A project may be a QML project even though no QML files have been added to pro/pri files. Change-Id: Ifd41093bf69526147e0a3116380a14bfa534f681 Reviewed-by: Kai Koehne --- src/plugins/qt4projectmanager/qt4project.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index 6dac1e54633..293404eccae 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -609,6 +609,7 @@ void Qt4Project::updateQmlJSCodeModel() hasQmlLib = qtLibs.contains(QLatin1String("declarative")) || qtLibs.contains(QLatin1String("qml")) || qtLibs.contains(QLatin1String("quick")); + break; } } @@ -617,7 +618,7 @@ void Qt4Project::updateQmlJSCodeModel() // 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 (m_projectFiles->files[QMLType].count() && hasQmlLib) + if (hasQmlLib) pl.add(ProjectExplorer::Constants::LANG_QMLJS); setProjectLanguages(pl);