Commit 01e364d5 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: visual feedback for x,y,w,h if anchored

there is now visual feedback that x,y,width,height cannot be changed
for anchored items
See BAUHAUS-228
parent a48d3897
......@@ -23,7 +23,7 @@ GroupBox {
spacing: 4
singleStep: 1;
objectName: "xSpinBox";
enabled: anchorBackend.hasParent;
enabled: anchorBackend.hasParent && !anchorBackend.leftAnchored && !anchorBackend.horizontalCentered
backendValue: backendValues.x
minimum: -2000;
maximum: 2000;
......@@ -36,9 +36,8 @@ GroupBox {
text: "Y"
alignRight: false
spacing: 4
objectName: "ySpinBox";
enabled: anchorBackend.hasParent && !anchorBackend.topAnchored && !anchorBackend.verticalCentered
backendValue: backendValues.y
enabled: anchorBackend.hasParent;
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
......@@ -61,7 +60,7 @@ GroupBox {
alignRight: false
spacing: 4
singleStep: 1;
objectName: "widthSpinBox";
enabled: !anchorBackend.rightAnchored && !anchorBackend.horizontalCentered
backendValue: backendValues.width
minimum: -2000;
maximum: 2000;
......@@ -74,7 +73,7 @@ GroupBox {
alignRight: false
spacing: 4
singleStep: 1;
objectName: "heightSpinBox";
enabled: !anchorBackend.bottomAnchored && !anchorBackend.verticalCentered
backendValue: backendValues.height
minimum: -2000;
maximum: 2000;
......
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