forked from qt-creator/qt-creator
QmlProject: Unify use of constants
Change-Id: I7397eb12f46e1c0a175b6bcec794b3e8ad1cb19a Reviewed-by: Aurindam Jana <aurindam.jana@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -109,7 +109,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