aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2020-03-25 16:48:04 +0100
committerTim Jenssen <tim.jenssen@qt.io>2020-03-30 10:02:04 +0000
commit7a7ee71f229b81d8021f2c8332acdd3e37baf305 (patch)
tree3eaada9a8e0056ec8013c325cfc252f254fccda8
parent29488fbdafa4da33b343dc26b208622d0bb58315 (diff)
QmlDesigner: Do not support rectangle gradient in Qt for MCUs
Change-Id: Ida324bf0647234a0ecff6689265767c0925d9115 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml2
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml
index 0fa2b331a8..3cd5d90399 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml
@@ -40,7 +40,7 @@ Column {
ColorEditor {
caption: qsTr("Color")
backendValue: backendValues.color
- supportGradient: true
+ supportGradient: backendValues.gradient.isAvailable
}
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp
index 3ec61f9cab..515b73ed2c 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp
@@ -265,7 +265,8 @@ bool PropertyEditorValue::isTranslated() const
bool PropertyEditorValue::isAvailable() const
{
- const QList<QByteArray> mcuProperties = {"layer", "opacity", "rotation", "scale", "transformOrigin", "smooth", "antialiasing", "border"};
+ const QList<QByteArray> mcuProperties = {"layer", "opacity", "rotation", "scale", "gradient",
+ "transformOrigin", "smooth", "antialiasing", "border"};
const QList<QByteArray> list = name().split('.');
const QByteArray pureName = list.first();