Commit fb9638f8 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Alessandro Portale

QmlDesigner.PropertyEditor: Fix resetting of alignment

This change makes sure that the default horizontal or vertical
alignment is selected after resetting it.

Change-Id: I057a8f0a0c1c343c89902c38ec4d39828deaaef3
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent 02be113c
......@@ -48,6 +48,8 @@ Row {
property bool baseStateFlag: isBaseState;
onValueChanged: {
buttonRow.initalChecked = 0
buttonRow.checkedIndex = 0
if (value !== undefined) {
if (value === "AlignLeft") {
buttonRow.initalChecked = 0
......
......@@ -49,6 +49,8 @@ Row {
property bool baseStateFlag: isBaseState;
onValueChanged: {
buttonRow.initalChecked = 0
buttonRow.checkedIndex = 0
if (value !== undefined) {
if (value === "AlignTop") {
buttonRow.initalChecked = 0
......
Markdown is supported
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