Commit ff5c9644 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: Fix text alignment buttons



They have to use the new enum api.

Change-Id: Ib4ac7d56512007cb19fd7e6a65413198a9d90719
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent 71510a8d
......@@ -110,21 +110,21 @@ Row {
iconSource: blueHighlight ? "images/alignmentleft-h-icon.png" : "images/alignmentleft-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignLeft"
backendValue.setEnumeration("Text", "AlignLeft")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentcenterh-h-icon.png" : "images/alignmentcenterh-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignHCenter"
backendValue.setEnumeration("Text", "AlignHCenter")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentright-h-icon.png" : "images/alignmentright-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignRight"
backendValue.setEnumeration("Text", "AlignRight")
}
}
}
......
......@@ -111,21 +111,21 @@ Row {
iconSource: blueHighlight ? "images/alignmenttop-h-icon.png" : "images/alignmenttop-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignTop"
backendValue.setEnumeration("Text", "AlignTop")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentmiddle-h-icon.png" : "images/alignmentmiddle-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignVCenter"
backendValue.setEnumeration("Text", "AlignVCenter")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentbottom-h-icon.png" : "images/alignmentbottom-icon.png"
onClicked: {
if (checked)
backendValue.value = "AlignBottom"
backendValue.setEnumeration("Text", "AlignBottom")
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment