forked from qt-creator/qt-creator
QmlDesigner: Do not support rectangle gradient in Qt for MCUs
Change-Id: Ida324bf0647234a0ecff6689265767c0925d9115 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
29488fbdaf
commit
7a7ee71f22
@@ -40,7 +40,7 @@ Column {
|
|||||||
ColorEditor {
|
ColorEditor {
|
||||||
caption: qsTr("Color")
|
caption: qsTr("Color")
|
||||||
backendValue: backendValues.color
|
backendValue: backendValues.color
|
||||||
supportGradient: true
|
supportGradient: backendValues.gradient.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -265,7 +265,8 @@ bool PropertyEditorValue::isTranslated() const
|
|||||||
|
|
||||||
bool PropertyEditorValue::isAvailable() 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 QList<QByteArray> list = name().split('.');
|
||||||
const QByteArray pureName = list.first();
|
const QByteArray pureName = list.first();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user