forked from qt-creator/qt-creator
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 <kai.koehne@digia.com>
This commit is contained in:
committed by
Kai Koehne
parent
4e6c539685
commit
cb5503715e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user