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:
Karim Abdelrahman
2023-12-08 14:56:20 +02:00
parent 194a34a8f1
commit 94125f9416
21 changed files with 173 additions and 13 deletions

View File

@@ -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

View File

@@ -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;