forked from qt-creator/qt-creator
Project: Set QML/C++ languages where both are possible
Change-Id: I4bc5bd7a644c48dfa529f9f9f6052e401de76d40 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -117,7 +117,7 @@ QmlProject::QmlProject(Internal::Manager *manager, const QString &fileName)
|
||||
m_modelManager(QmlJS::ModelManagerInterface::instance())
|
||||
{
|
||||
setProjectContext(Core::Context(QmlProjectManager::Constants::PROJECTCONTEXT));
|
||||
setProjectLanguages(Core::Context(QmlProjectManager::Constants::LANG_QML));
|
||||
setProjectLanguages(Core::Context(ProjectExplorer::Constants::LANG_QMLJS));
|
||||
|
||||
QFileInfo fileInfo(m_fileName);
|
||||
m_projectName = fileInfo.completeBaseName();
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace QmlProjectManager {
|
||||
namespace Constants {
|
||||
|
||||
const char *const PROJECTCONTEXT = "QmlProject.ProjectContext";
|
||||
const char *const LANG_QML = "QML";
|
||||
const char *const QMLPROJECT_MIMETYPE = QmlJSTools::Constants::QMLPROJECT_MIMETYPE;
|
||||
|
||||
} // namespace Constants
|
||||
|
||||
Reference in New Issue
Block a user