QmlDesigner Fix for Gradient Presets

Change-Id: I1d3d2f61f978c6bfb52ad4ea42f2c6756a2a0483
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2019-08-15 14:05:44 +02:00
committed by Thomas Hartmann
parent eaf8ccf118
commit 79576601db

View File

@@ -533,6 +533,14 @@ Column {
visible: false
function applyPreset() {
if (!gradientLine.hasGradient)
{
if (colorEditor.shapeGradients)
gradientLine.gradientTypeName = "LinearGradient"
else
gradientLine.gradientTypeName = "Gradient"
}
if (presetList.gradientData.presetType == 0) {
gradientLine.setPresetByID(presetList.gradientData.presetID);
}