Commit 4ecdc78c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fixes anchors (BAUHAUS-529)

parent 91dac938
...@@ -156,6 +156,8 @@ QWidget { ...@@ -156,6 +156,8 @@ QWidget {
if (checked) { if (checked) {
anchorBackend.leftAnchored = false; anchorBackend.leftAnchored = false;
anchorBackend.rightAnchored = false; anchorBackend.rightAnchored = false;
anchorBackend.topAnchored = false;
anchorBackend.bottomAnchored = false;
anchorBackend.verticalCentered = true; anchorBackend.verticalCentered = true;
} else { } else {
anchorBackend.verticalCentered = false; anchorBackend.verticalCentered = false;
...@@ -176,8 +178,8 @@ QWidget { ...@@ -176,8 +178,8 @@ QWidget {
checked: anchorBackend.horizontalCentered; checked: anchorBackend.horizontalCentered;
onToggled: { onToggled: {
if (checked) { if (checked) {
anchorBackend.topAnchored = false; anchorBackend.leftAnchored = false;
anchorBackend.bottomAnchored = false; anchorBackend.rightAnchored = false;
anchorBackend.horizontalCentered = true; anchorBackend.horizontalCentered = true;
} else { } else {
anchorBackend.horizontalCentered = false; anchorBackend.horizontalCentered = false;
......
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