forked from qt-creator/qt-creator
QmlDesigner: Disable MCU unsupported workspace and views
This patch disable unsupported 3D workspace and some views from view menu and toolbar combobox Task-number: QDS-10336 Change-Id: Ic97baead8029a93ae95707b9349f81f02adb6335 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Yasser Grimes <yasser.grimes@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
@@ -238,4 +238,17 @@ bool QmlProject::allowOnlySingleProject()
|
||||
return !settings->value(key, false).toBool();
|
||||
}
|
||||
|
||||
bool QmlProject::isMCUs()
|
||||
{
|
||||
if (!ProjectExplorer::ProjectManager::startupTarget())
|
||||
return false;
|
||||
|
||||
const QmlProjectManager::QmlBuildSystem *buildSystem
|
||||
= qobject_cast<QmlProjectManager::QmlBuildSystem *>(
|
||||
ProjectExplorer::ProjectManager::startupTarget()->buildSystem());
|
||||
QTC_ASSERT(buildSystem, return false);
|
||||
|
||||
return buildSystem && buildSystem->qtForMCUs();
|
||||
}
|
||||
|
||||
} // namespace QmlProjectManager
|
||||
|
||||
@@ -24,6 +24,8 @@ public:
|
||||
|
||||
ProjectExplorer::Tasks projectIssues(const ProjectExplorer::Kit *k) const final;
|
||||
|
||||
static bool isMCUs();
|
||||
|
||||
protected:
|
||||
RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user