diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2022-09-20 16:14:51 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2022-09-20 13:42:52 +0000 |
commit | e936ef2fdbbe9e32ea701bc6d6a18463dc08e248 (patch) | |
tree | 4a7a2a9f9d1c72c63f6a51e5da47914de01bdbfe | |
parent | 145ecd040fb16531c76415fc1996ae85acd71ddf (diff) | |
download | qt-creator-e936ef2fdbbe9e32ea701bc6d6a18463dc08e248.tar.gz |
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>
4 files changed, 36 insertions, 36 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector2dEditorTemplate.template b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector2dEditorTemplate.template index b339c254ba..ab2eb508d1 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector2dEditorTemplate.template +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector2dEditorTemplate.template @@ -3,40 +3,38 @@ PropertyLabel { tooltip: "%1" } -ColumnLayout { - SecondColumnLayout { - SpinBox { - minimumValue: -9999999 - maximumValue: 9999999 - decimals: 2 - backendValue: backendValues.%2_x - implicitWidth: StudioTheme.Values.twoControlColumnWidth - + 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 {} +SecondColumnLayout { + SpinBox { + minimumValue: -9999999 + maximumValue: 9999999 + decimals: 2 + backendValue: backendValues.%2_x + implicitWidth: StudioTheme.Values.twoControlColumnWidth + + 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 {} } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector3dEditorTemplate.template b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector3dEditorTemplate.template index 5caff585d7..c5be937474 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector3dEditorTemplate.template +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector3dEditorTemplate.template @@ -4,6 +4,7 @@ PropertyLabel { } ColumnLayout { + spacing: StudioTheme.Values.sectionRowSpacing / 2 SecondColumnLayout { SpinBox { minimumValue: -9999999 diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector4dEditorTemplate.template b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector4dEditorTemplate.template index 619f51cebe..0fd6cb9f7f 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector4dEditorTemplate.template +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/PropertyTemplates/Vector4dEditorTemplate.template @@ -4,6 +4,7 @@ PropertyLabel { } ColumnLayout { + spacing: StudioTheme.Values.sectionRowSpacing / 2 SecondColumnLayout { SpinBox { minimumValue: -9999999 diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/DynamicPropertiesSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/DynamicPropertiesSection.qml index 4bd99e3f68..2a0580edf1 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/DynamicPropertiesSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/DynamicPropertiesSection.qml @@ -297,7 +297,7 @@ Section { onVecSizeChanged: updateProxyValues() - spacing: StudioTheme.Values.sectionRowSpacing + spacing: StudioTheme.Values.sectionRowSpacing / 2 function isValidValue(v) { return !(v === undefined || isNaN(v)) |