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