QmlDesigner: Update Tooltips for BorderImage Section

This patch update tooltip text for Border Image fields
in Property editor.

Fixes: QDS-8929
Change-Id: Ie49549244cf8ea0d7ee52ffe2446b3e25a129e4e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Pranta Dastider
2023-02-01 17:02:24 +01:00
committed by Pranta Ghosh Dastider
parent 16c7dd6466
commit cd7a5904bc

View File

@@ -18,7 +18,10 @@ Column {
anchors.right: parent.right anchors.right: parent.right
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Source") } PropertyLabel {
text: qsTr("Source")
tooltip: qsTr("Sets the source image for the border.")
}
SecondColumnLayout { SecondColumnLayout {
UrlChooser { UrlChooser {
@@ -30,6 +33,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Source size") text: qsTr("Source size")
tooltip: qsTr("Sets the dimension of the border image.")
blockedByTemplate: !backendValues.sourceSize.isAvailable blockedByTemplate: !backendValues.sourceSize.isAvailable
} }
@@ -49,6 +53,7 @@ Column {
ControlLabel { ControlLabel {
//: The width of the object //: The width of the object
text: qsTr("W", "width") text: qsTr("W", "width")
tooltip: qsTr("Width")
enabled: backendValues.sourceSize_width.isAvailable enabled: backendValues.sourceSize_width.isAvailable
} }
@@ -69,6 +74,7 @@ Column {
ControlLabel { ControlLabel {
//: The height of the object //: The height of the object
text: qsTr("H", "height") text: qsTr("H", "height")
tooltip: qsTr("Height")
enabled: backendValues.sourceSize_height.isAvailable enabled: backendValues.sourceSize_height.isAvailable
} }
/* /*
@@ -82,6 +88,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Tile mode H") text: qsTr("Tile mode H")
tooltip: qsTr("Sets the horizontal tiling mode.")
blockedByTemplate: !backendValues.horizontalTileMode.isAvailable blockedByTemplate: !backendValues.horizontalTileMode.isAvailable
} }
@@ -101,6 +108,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Tile mode V") text: qsTr("Tile mode V")
tooltip: qsTr("Sets the vertical tiling mode.")
blockedByTemplate: !backendValues.verticalTileMode.isAvailable blockedByTemplate: !backendValues.verticalTileMode.isAvailable
} }
@@ -118,7 +126,10 @@ Column {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Border left") } PropertyLabel {
text: qsTr("Border left")
tooltip: qsTr("Sets the left border.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -133,7 +144,10 @@ Column {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Border right") } PropertyLabel {
text: qsTr("Border right")
tooltip: qsTr("Sets the right border.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -148,7 +162,10 @@ Column {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Border top") } PropertyLabel {
text: qsTr("Border top")
tooltip: qsTr("Sets the top border.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -163,7 +180,10 @@ Column {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Border bottom") } PropertyLabel {
text: qsTr("Border bottom")
tooltip: qsTr("Sets the bottom border.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -180,7 +200,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Mirror") text: qsTr("Mirror")
tooltip: qsTr("Specifies whether the image should be horizontally inverted.") tooltip: qsTr("Toggles if the image should be inverted horizontally.")
blockedByTemplate: !backendValues.mirror.isAvailable blockedByTemplate: !backendValues.mirror.isAvailable
} }
@@ -198,7 +218,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Smooth") text: qsTr("Smooth")
tooltip: qsTr("Specifies whether the image is smoothly filtered when scaled or transformed.") tooltip: qsTr("Toggles if the image should be filtered smoothly when transformed.")
blockedByTemplate: !backendValues.smooth.isAvailable blockedByTemplate: !backendValues.smooth.isAvailable
} }
@@ -216,7 +236,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Cache") text: qsTr("Cache")
tooltip: qsTr("Specifies whether the image should be cached.") tooltip: qsTr("Toggles if the image is saved to the cache memory.")
blockedByTemplate: !backendValues.cache.isAvailable blockedByTemplate: !backendValues.cache.isAvailable
} }
@@ -234,7 +254,7 @@ Column {
PropertyLabel { PropertyLabel {
text: qsTr("Asynchronous") text: qsTr("Asynchronous")
tooltip: qsTr("Specifies that images on the local filesystem should be loaded asynchronously in a separate thread.") tooltip: qsTr("Toggles if the image is loaded after all the components in the design.")
blockedByTemplate: !backendValues.asynchronous.isAvailable blockedByTemplate: !backendValues.asynchronous.isAvailable
} }