QmlDesigner.PropertyEditor: Make anchoring consistent

If we anchor left or right we have to disable horizontal
anchoring.
Actually this is still simpler then what Qt Quick actually
supports, since Qt Quick does support anchoring to the left
and horizontal anchoring.
What is not supported is anchoring to the left, right and
horizontally.
This has to be fixed.

Change-Id: Id38e528d9d8a97961135370b0c9c0151bd4b6f18
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Thomas Hartmann
2014-06-26 16:17:16 +02:00
parent c9029bf996
commit de9b72628f

View File

@@ -94,7 +94,7 @@ ButtonRow {
onClicked: {
if (checked) {
anchorBackend.verticalCentered = false;
anchorBackend.horizontalCentered = false;
anchorBackend.leftAnchored = true;
} else {
anchorBackend.leftAnchored = false;
@@ -112,7 +112,7 @@ ButtonRow {
onClicked: {
if (checked) {
anchorBackend.verticalCentered = false;
anchorBackend.horizontalCentered = false;
anchorBackend.rightAnchored = true;
} else {
anchorBackend.rightAnchored = false;