aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAleksei German <aleksei.german@qt.io>2021-09-07 21:16:00 +0200
committerAleksei German <aleksei.german@qt.io>2021-09-09 13:47:00 +0000
commitf2642e6f3ca83b2453c609706043303814cd68c1 (patch)
tree11a675e419dd78b28bd5be266f1883712e0194c3 /src
parent04763a307d6080482b10c904500779e8d0449dc0 (diff)
QmlDesigner: Limit Style switch in MCU mode
Task-number: QDS-4954 Change-Id: Iba840ec00c938c09f79c390f0d81fa3006b4f7a9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmldesigner/components/componentcore/changestyleaction.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/changestyleaction.cpp b/src/plugins/qmldesigner/components/componentcore/changestyleaction.cpp
index 5a40509803..86f96cb1aa 100644
--- a/src/plugins/qmldesigner/components/componentcore/changestyleaction.cpp
+++ b/src/plugins/qmldesigner/components/componentcore/changestyleaction.cpp
@@ -24,6 +24,7 @@
****************************************************************************/
#include "changestyleaction.h"
+#include "designermcumanager.h"
#include <projectexplorer/project.h>
#include <projectexplorer/session.h>
@@ -142,6 +143,10 @@ QWidget *ChangeStyleWidgetAction::createWidget(QWidget *parent)
comboBox->setDisabled(true);
comboBox->setToolTip(tr(disbledTooltip));
comboBox->setCurrentIndex(0);
+ } else if (DesignerMcuManager::instance().isMCUProject()) {
+ comboBox->setDisabled(true);
+ //TODO: add tooltip regarding MCU limitations, however we are behind string freeze
+ comboBox->setEditText(style);
} else {
comboBox->setDisabled(false);
comboBox->setToolTip(tr(enabledTooltip));