forked from qt-creator/qt-creator
QmlDesigner Fix for Gradient Presets
Change-Id: I1d3d2f61f978c6bfb52ad4ea42f2c6756a2a0483 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
eaf8ccf118
commit
79576601db
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user