diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml index e37ee61cbd8..05683cb2160 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml @@ -47,6 +47,7 @@ Section { SectionLayout { PropertyLabel { text: qsTr("Position") + tooltip: qsTr("Sets the position of the component relative to its parent.") enabled: xSpinBox.enabled || ySpinBox.enabled } @@ -66,7 +67,7 @@ Section { ControlLabel { text: "X" - tooltip: xSpinBox.enabled ? "X" : root.disabledTooltip + tooltip: xSpinBox.enabled ? qsTr("X-coordinate") : root.disabledTooltip enabled: xSpinBox.enabled } @@ -87,7 +88,7 @@ Section { ControlLabel { text: "Y" - tooltip: xSpinBox.enabled ? "Y" : root.disabledTooltip + tooltip: xSpinBox.enabled ? qsTr("Y-coordinate") : root.disabledTooltip enabled: ySpinBox.enabled } /* @@ -101,6 +102,7 @@ Section { PropertyLabel { text: qsTr("Size") + tooltip: qsTr("Sets the width and height of the component.") enabled: widthSpinBox.enabled || heightSpinBox.enabled } @@ -157,11 +159,13 @@ Section { PropertyLabel { text: qsTr("Rotation") + tooltip: qsTr("Rotate the component at an angle.") blockedByTemplate: !backendValues.rotation.isAvailable } SecondColumnLayout { SpinBox { + id: rotationSpinBox implicitWidth: StudioTheme.Values.twoControlColumnWidth + StudioTheme.Values.actionIndicatorWidth backendValue: backendValues.rotation @@ -175,6 +179,7 @@ Section { ControlLabel { text: "°" + tooltip: rotationSpinBox.enabled ? qsTr("Angle (in degree)") : root.disabledTooltip enabled: backendValues.rotation.isAvailable } /* @@ -210,11 +215,13 @@ Section { PropertyLabel { text: qsTr("Scale") + tooltip: qsTr("Sets the scale of the component by percentage.") blockedByTemplate: !backendValues.scale.isAvailable } SecondColumnLayout { SpinBox { + id: scaleSpinBox implicitWidth: StudioTheme.Values.singleControlColumnWidth + StudioTheme.Values.actionIndicatorWidth sliderIndicatorVisible: true @@ -230,13 +237,17 @@ Section { ControlLabel { text: "%" + tooltip: scaleSpinBox.enabled ? qsTr("Percentage") : root.disabledTooltip enabled: backendValues.scale.isAvailable } ExpandingSpacer {} } - PropertyLabel { text: qsTr("Z stack") } + PropertyLabel { + text: qsTr("Z stack") + tooltip: qsTr("Sets the stacking order of the component.") + } SecondColumnLayout { SpinBox { @@ -252,6 +263,7 @@ Section { PropertyLabel { text: qsTr("Origin") + tooltip: qsTr("Sets the modification point of the component.") blockedByTemplate: !backendValues.transformOrigin.isAvailable }