QmlDesigner: Reduce vertical gap between vector fields

This helps to differentiate which fields belong to which property
when multiple vertor properties are added next to each other.

Fixes: QDS-7704
Change-Id: I885e6d3d12a11851668e7c4d66f94f3356e5f082
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2022-09-20 16:14:51 +03:00
parent 145ecd040f
commit e936ef2fdb
4 changed files with 36 additions and 36 deletions

View File

@@ -3,40 +3,38 @@ PropertyLabel {
tooltip: "%1" tooltip: "%1"
} }
ColumnLayout { SecondColumnLayout {
SecondColumnLayout { SpinBox {
SpinBox { minimumValue: -9999999
minimumValue: -9999999 maximumValue: 9999999
maximumValue: 9999999 decimals: 2
decimals: 2 backendValue: backendValues.%2_x
backendValue: backendValues.%2_x implicitWidth: StudioTheme.Values.twoControlColumnWidth
implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth
+ StudioTheme.Values.actionIndicatorWidth
}
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
ControlLabel {
text: "X"
}
Spacer { implicitWidth: StudioTheme.Values.controlGap }
SpinBox {
minimumValue: -9999999
maximumValue: 9999999
decimals: 2
backendValue: backendValues.%2_y
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
ControlLabel {
text: "Y"
}
ExpandingSpacer {}
} }
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
ControlLabel {
text: "X"
}
Spacer { implicitWidth: StudioTheme.Values.controlGap }
SpinBox {
minimumValue: -9999999
maximumValue: 9999999
decimals: 2
backendValue: backendValues.%2_y
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
ControlLabel {
text: "Y"
}
ExpandingSpacer {}
} }

View File

@@ -4,6 +4,7 @@ PropertyLabel {
} }
ColumnLayout { ColumnLayout {
spacing: StudioTheme.Values.sectionRowSpacing / 2
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
minimumValue: -9999999 minimumValue: -9999999

View File

@@ -4,6 +4,7 @@ PropertyLabel {
} }
ColumnLayout { ColumnLayout {
spacing: StudioTheme.Values.sectionRowSpacing / 2
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
minimumValue: -9999999 minimumValue: -9999999

View File

@@ -297,7 +297,7 @@ Section {
onVecSizeChanged: updateProxyValues() onVecSizeChanged: updateProxyValues()
spacing: StudioTheme.Values.sectionRowSpacing spacing: StudioTheme.Values.sectionRowSpacing / 2
function isValidValue(v) { function isValidValue(v) {
return !(v === undefined || isNaN(v)) return !(v === undefined || isNaN(v))