forked from qt-creator/qt-creator
QmlProject: Add support for primaryLanguage
Task-number: QDS-5187 Change-Id: I05aafa726fd6c2b586d57b64239cf08c1f2342ab Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -347,6 +347,13 @@ QStringList QmlBuildSystem::supportedLanguages() const
|
||||
return {};
|
||||
}
|
||||
|
||||
QString QmlBuildSystem::primaryLanguage() const
|
||||
{
|
||||
if (m_projectItem)
|
||||
return m_projectItem.data()->primaryLanguage();
|
||||
return {};
|
||||
}
|
||||
|
||||
void QmlBuildSystem::refreshProjectFile()
|
||||
{
|
||||
refresh(QmlBuildSystem::ProjectFile | Files);
|
||||
@@ -518,6 +525,8 @@ QVariant QmlBuildSystem::additionalData(Id id) const
|
||||
return customFileSelectors();
|
||||
if (id == Constants::supportedLanguagesData)
|
||||
return supportedLanguages();
|
||||
if (id == Constants::primaryLanguageData)
|
||||
return primaryLanguage();
|
||||
if (id == Constants::customForceFreeTypeData)
|
||||
return forceFreeType();
|
||||
if (id == Constants::customQtForMCUs)
|
||||
|
Reference in New Issue
Block a user