forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: bug fix for color editing
Task-Nr: QTCREATORBUG-4069
This commit is contained in:
@@ -13,6 +13,31 @@ GroupBox {
|
|||||||
|
|
||||||
property bool hasBorder
|
property bool hasBorder
|
||||||
|
|
||||||
|
property variant colorAlpha: colorGroupBox.alpha
|
||||||
|
property bool hasGradient: backendValues.gradient.isInModel
|
||||||
|
|
||||||
|
onHasGradientChanged: {
|
||||||
|
print("onGradientInModelChanged")
|
||||||
|
if (backendValues.gradient.isInModel) {
|
||||||
|
print("inmodel")
|
||||||
|
colorGroupBox.setGradientButtonChecked = true;
|
||||||
|
} else {
|
||||||
|
print("else")
|
||||||
|
if (colorGroupBox.alpha == 0)
|
||||||
|
colorGroupBox.setNoneButtonChecked = true;
|
||||||
|
else
|
||||||
|
colorGroupBox.setSolidButtonChecked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onColorAlphaChanged: {
|
||||||
|
if (backendValues.gradient.isInModel)
|
||||||
|
return
|
||||||
|
if (colorGroupBox.alpha == 0)
|
||||||
|
colorGroupBox.setNoneButtonChecked = true;
|
||||||
|
else
|
||||||
|
colorGroupBox.setSolidButtonChecked = true;
|
||||||
|
}
|
||||||
|
|
||||||
onSelectionFlagChanged: {
|
onSelectionFlagChanged: {
|
||||||
isSetup = true;
|
isSetup = true;
|
||||||
|
Reference in New Issue
Block a user