diff options
author | Pranta Dastider <pranta.dastider@qt.io> | 2023-06-30 16:30:08 +0200 |
---|---|---|
committer | Pranta Dastider <pranta.dastider@qt.io> | 2023-07-07 11:35:38 +0200 |
commit | 62998be504e483575b8b54586851b26f38773aaa (patch) | |
tree | c410eb5c567ff3fae6f8f22d7a26c84671b7373b | |
parent | 830119d8fc87408dbd5ec784bd8c96d290680ae1 (diff) |
QmlDesigner: Update Tooltips for Qt Quick Studio Components Propertiesqds-dev-4.3
This patch update tooltip text for Qt Quick Studio Components
properties.
Fixes: QDS-10149
Change-Id: Ibad77f7c8444bd6917e187e30f592269751fe439
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
12 files changed, 209 insertions, 51 deletions
diff --git a/src/imports/components/designer/ArcItemSpecifics.qml b/src/imports/components/designer/ArcItemSpecifics.qml index 7f61a1d..1f157db 100644 --- a/src/imports/components/designer/ArcItemSpecifics.qml +++ b/src/imports/components/designer/ArcItemSpecifics.qml @@ -43,7 +43,10 @@ Column { anchors.right: parent.right SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color inside the Arc stroke. This only works if the <b>Full outline</b> option is selected and the Arc stroke is not thick enough to fill the space.") + } ColorEditor { backendValue: backendValues.fillColor @@ -51,14 +54,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the color of the Arc.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the thickness of the Arc.") + } SecondColumnLayout { SpinBox { @@ -101,7 +110,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Arc start") } + PropertyLabel { + text: qsTr("Arc start") + tooltip: qsTr("Sets the start angle of the Arc.") + } SecondColumnLayout { SpinBox { @@ -121,7 +133,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Arc end") } + PropertyLabel { + text: qsTr("Arc end") + tooltip: qsTr("Sets the end angle of the Arc.") + } SecondColumnLayout { SpinBox { @@ -152,7 +167,10 @@ Column { anchors.right: parent.right SectionLayout { - PropertyLabel { text: qsTr("Outline width") } + PropertyLabel { + text: qsTr("Outline width") + tooltip: qsTr("Sets the width of the outline that follows the Arc.") + } SecondColumnLayout { SpinBox { @@ -177,7 +195,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Round outline") } + PropertyLabel { + text: qsTr("Round outline") + tooltip: qsTr("Toggles the <b>Full outline</b> to have rounded edges.") + } SecondColumnLayout { CheckBox { @@ -190,7 +211,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Round start") } + PropertyLabel { + text: qsTr("Round start") + tooltip: qsTr("Toggles the starting edge of the <b>Full outline</b> to be rounded.") + } SecondColumnLayout { CheckBox { @@ -203,7 +227,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Round end") } + PropertyLabel { + text: qsTr("Round end") + tooltip: qsTr("Toggles the end edge of the <b>Full outline</b> to be rounded.") + } SecondColumnLayout { CheckBox { diff --git a/src/imports/components/designer/BevelSection.qml b/src/imports/components/designer/BevelSection.qml index 9b71a70..2e3e479 100644 --- a/src/imports/components/designer/BevelSection.qml +++ b/src/imports/components/designer/BevelSection.qml @@ -37,7 +37,10 @@ Section { caption: qsTr("Corner Bevel") SectionLayout { - PropertyLabel { text: qsTr("Top") } + PropertyLabel { + text: qsTr("Top") + tooltip: qsTr("Sets a flat cut on the top left or right corners.") + } SecondColumnLayout { CheckBox { @@ -72,7 +75,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Bottom") } + PropertyLabel { + text: qsTr("Bottom") + tooltip: qsTr("Sets a flat cut on the bottom left or right corners.") + } SecondColumnLayout { CheckBox { @@ -108,7 +114,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Global") } + PropertyLabel { + text: qsTr("Global") + tooltip: qsTr("Sets a flat cut on all of the corners.") + } SecondColumnLayout { CheckBox { diff --git a/src/imports/components/designer/BorderItemSpecifics.qml b/src/imports/components/designer/BorderItemSpecifics.qml index f5eea2b..2fe8e5e 100644 --- a/src/imports/components/designer/BorderItemSpecifics.qml +++ b/src/imports/components/designer/BorderItemSpecifics.qml @@ -42,14 +42,20 @@ Column { caption: qsTr("Border Item") SectionLayout { - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the Border.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the Border.") + } SecondColumnLayout { SpinBox { @@ -100,7 +106,10 @@ Column { caption: qsTr("Draw Edges") SectionLayout { - PropertyLabel { text: qsTr("Vertical") } + PropertyLabel { + text: qsTr("Vertical") + tooltip: qsTr("Toggles the top or bottom edges of the border.") + } SecondColumnLayout { CheckBox { @@ -135,7 +144,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Horizontal") } + PropertyLabel { + text: qsTr("Horizontal") + tooltip: qsTr("Toggles the left or right edges of the border.") + } SecondColumnLayout { CheckBox { diff --git a/src/imports/components/designer/CornerRadiusSection.qml b/src/imports/components/designer/CornerRadiusSection.qml index e8037a5..56121f1 100644 --- a/src/imports/components/designer/CornerRadiusSection.qml +++ b/src/imports/components/designer/CornerRadiusSection.qml @@ -37,7 +37,10 @@ Section { caption: qsTr("Corner Radiuses") SectionLayout { - PropertyLabel { text: qsTr("Top") } + PropertyLabel { + text: qsTr("Top") + tooltip: qsTr("Toggles the top left or right corner to a rounded shape.") + } SecondColumnLayout { SpinBox { @@ -82,7 +85,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Bottom") } + PropertyLabel { + text: qsTr("Bottom") + tooltip: qsTr("Toggles the bottom left or right corner to a rounded shape.") + } SecondColumnLayout { SpinBox { @@ -128,7 +134,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Global") } + PropertyLabel { + text: qsTr("Global") + tooltip: qsTr("Toggles all the corners into a rounded shape.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/EllipseItemSpecifics.qml b/src/imports/components/designer/EllipseItemSpecifics.qml index 5ff80f5..3189633 100644 --- a/src/imports/components/designer/EllipseItemSpecifics.qml +++ b/src/imports/components/designer/EllipseItemSpecifics.qml @@ -42,7 +42,10 @@ Column { caption: qsTr("Ellipse Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the Ellipse.") + } ColorEditor { backendValue: backendValues.fillColor @@ -50,14 +53,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/FlipableItemSpecifics.qml b/src/imports/components/designer/FlipableItemSpecifics.qml index ba835fb..d5445f4 100644 --- a/src/imports/components/designer/FlipableItemSpecifics.qml +++ b/src/imports/components/designer/FlipableItemSpecifics.qml @@ -44,7 +44,10 @@ Column { anchors.right: parent.right SectionLayout { - PropertyLabel { text: qsTr("Rotational axis") } + PropertyLabel { + text: qsTr("Rotational axis") + tooltip: qsTr("Sets the rotation along with the x-axis or y-axis.") + } SecondColumnLayout { ComboBox { @@ -59,7 +62,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Flip angle") } + PropertyLabel { + text: qsTr("Flip angle") + tooltip: qsTr("Sets the angle of the components to produce the flipping effect.") + } SecondColumnLayout { SpinBox { @@ -88,7 +94,10 @@ Column { anchors.right: parent.right SectionLayout { - PropertyLabel { text: qsTr("Front") } + PropertyLabel { + text: qsTr("Front") + tooltip: qsTr("Sets the visibility percentage of the front side component within the Flipable component.") + } SecondColumnLayout { SpinBox { @@ -108,7 +117,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Back") } + PropertyLabel { + text: qsTr("Back") + tooltip: qsTr("Sets the visibility percentage of the back side component within the Flipable component.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/PieItemSpecifics.qml b/src/imports/components/designer/PieItemSpecifics.qml index b549914..7bdf912 100644 --- a/src/imports/components/designer/PieItemSpecifics.qml +++ b/src/imports/components/designer/PieItemSpecifics.qml @@ -42,7 +42,10 @@ Column { caption: qsTr("Pie Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the Pie.") + } ColorEditor { backendValue: backendValues.fillColor @@ -50,14 +53,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { @@ -100,7 +109,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Pie start") } + PropertyLabel { + text: qsTr("Pie start") + tooltip: qsTr("Sets the starting angle of the Pie.") + } SecondColumnLayout { SpinBox { @@ -120,7 +132,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Pie end") } + PropertyLabel { + text: qsTr("Pie end") + tooltip: qsTr("Sets the ending angle of the Pie.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/RectangleItemSpecifics.qml b/src/imports/components/designer/RectangleItemSpecifics.qml index 85aacac..3509769 100644 --- a/src/imports/components/designer/RectangleItemSpecifics.qml +++ b/src/imports/components/designer/RectangleItemSpecifics.qml @@ -42,7 +42,10 @@ Column { caption: qsTr("Rectangle Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the Rectangle.") + } ColorEditor { backendValue: backendValues.fillColor @@ -50,14 +53,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/RegularPolygonItemSpecifics.qml b/src/imports/components/designer/RegularPolygonItemSpecifics.qml index 772db0d..46bc42b 100644 --- a/src/imports/components/designer/RegularPolygonItemSpecifics.qml +++ b/src/imports/components/designer/RegularPolygonItemSpecifics.qml @@ -42,7 +42,10 @@ Column { caption: qsTr("Regular Polygon Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the enclosed Regular Polygon.") + } ColorEditor { backendValue: backendValues.fillColor @@ -50,14 +53,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { @@ -100,7 +109,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Side count") } + PropertyLabel { + text: qsTr("Side count") + tooltip: qsTr("Sets the number of edges for the Regular Polygon.") + } SecondColumnLayout { SpinBox { @@ -130,7 +142,10 @@ Column { caption: qsTr("Radiuses") SectionLayout { - PropertyLabel { text: qsTr("Radius") } + PropertyLabel { + text: qsTr("Radius") + tooltip: qsTr("Sets the radius of the corners in the Regular Polygon.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/StrokeDetailsSection.qml b/src/imports/components/designer/StrokeDetailsSection.qml index 3e6c599..f51f557 100644 --- a/src/imports/components/designer/StrokeDetailsSection.qml +++ b/src/imports/components/designer/StrokeDetailsSection.qml @@ -47,6 +47,7 @@ Section { SectionLayout { PropertyLabel { text: qsTr("Border mode") + tooltip: qsTr("Sets the way the border gets drawn along the boundary.") visible: showBorderMode } @@ -59,6 +60,7 @@ Section { PropertyLabel { text: qsTr("Adjust radius") + tooltip: qsTr("Toggles the corners to adapt the radius of the component.") visible: showRadiusAdjustmentment } @@ -72,7 +74,10 @@ Section { } } - PropertyLabel { text: qsTr("Stroke style") } + PropertyLabel { + text: qsTr("Stroke style") + tooltip: qsTr("Sets the style of the stroke. Selecting <b>None</b> would make it without a stroke.") + } SecondColumnLayout { ComboBox { @@ -90,6 +95,7 @@ Section { PropertyLabel { text: qsTr("Join style") + tooltip: qsTr("Sets the style of the connecting points of the edges.") visible: showJoinStyle } @@ -109,6 +115,7 @@ Section { PropertyLabel { text: qsTr("Cap style") + tooltip: qsTr("Sets the line ends as square or rounded.") visible: showCapStyle } @@ -121,6 +128,7 @@ Section { PropertyLabel { text: qsTr("Dash pattern") + tooltip: qsTr("Sets the Dash length and gap in the Stroke.") Layout.alignment: Qt.AlignTop Layout.topMargin: 5 } @@ -129,7 +137,10 @@ Section { enableEditors: strokeStyle.currentIndex === 2 } - PropertyLabel { text: qsTr("Dash offset") } + PropertyLabel { + text: qsTr("Dash offset") + tooltip: qsTr("Sets the starting point of the dash pattern for a line.") + } SecondColumnLayout { SpinBox { diff --git a/src/imports/components/designer/SvgPathItemSpecifics.qml b/src/imports/components/designer/SvgPathItemSpecifics.qml index 9cbc47f..fd6f601 100644 --- a/src/imports/components/designer/SvgPathItemSpecifics.qml +++ b/src/imports/components/designer/SvgPathItemSpecifics.qml @@ -43,7 +43,10 @@ Column { caption: qsTr("SVG Path Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the SVG Path Item.") + } ColorEditor { backendValue: backendValues.fillColor @@ -51,14 +54,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { @@ -113,7 +122,10 @@ Column { caption: qsTr("Path Info") SectionLayout { - PropertyLabel { text: qsTr("Path data") } + PropertyLabel { + text: qsTr("Path data") + tooltip: qsTr("Sets a data string that specifies the SVG Path.") + } SecondColumnLayout{ LineEdit { diff --git a/src/imports/components/designer/TriangleItemSpecifics.qml b/src/imports/components/designer/TriangleItemSpecifics.qml index 8a2308e..83c4d91 100644 --- a/src/imports/components/designer/TriangleItemSpecifics.qml +++ b/src/imports/components/designer/TriangleItemSpecifics.qml @@ -46,7 +46,10 @@ Column { caption: qsTr("Triangle Item") SectionLayout { - PropertyLabel { text: qsTr("Fill color") } + PropertyLabel { + text: qsTr("Fill color") + tooltip: qsTr("Sets the color to fill the Triangle.") + } ColorEditor { backendValue: backendValues.fillColor @@ -54,14 +57,20 @@ Column { shapeGradients: true } - PropertyLabel { text: qsTr("Stroke color") } + PropertyLabel { + text: qsTr("Stroke color") + tooltip: qsTr("Sets the stroke color of the boundary.") + } ColorEditor { backendValue: backendValues.strokeColor supportGradient: false } - PropertyLabel { text: qsTr("Stroke width") } + PropertyLabel { + text: qsTr("Stroke width") + tooltip: qsTr("Sets the stroke thickness of the boundary.") + } SecondColumnLayout { SpinBox { @@ -117,7 +126,10 @@ Column { caption: qsTr("Radiuses") SectionLayout { - PropertyLabel { text: qsTr("Radius") } + PropertyLabel { + text: qsTr("Radius") + tooltip: qsTr("Sets the radius of the corners and the radius for the edges of the intersections in the Triangle.") + } SecondColumnLayout { SpinBox { @@ -174,7 +186,10 @@ Column { anchors.right: parent.right SectionLayout { - PropertyLabel { text: qsTr("Vertical") } + PropertyLabel { + text: qsTr("Vertical") + tooltip: qsTr("Sets the top and bottom margins for the Triangle component.") + } SecondColumnLayout { SpinBox { @@ -222,7 +237,10 @@ Column { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Horizontal") } + PropertyLabel { + text: qsTr("Horizontal") + tooltip: qsTr("Sets the left and right margins for the Triangle component.") + } SecondColumnLayout { SpinBox { |