forked from qt-creator/qt-creator
QmlDesigner: Update Tooltips for 2D Geometry Section
This patch update tooltip text for 2D Geometry Section fields. Fixes: QDS-8722 Change-Id: Id2db204057778fd141bbe17204e200d59070db8a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Pranta Ghosh Dastider
parent
1c48089979
commit
03eb5daf8d
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user