QmlDesigner: Update Tooltips for Qt Quick Layout components

This patch update tooltips for Qt Quick Layout compoents.
It also update tooltips of the relative properties.

Fixes: QDS-12283
Change-Id: I6c4d76602668dc7258cce7ff4fab4b547d8f5d0f
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
This commit is contained in:
Pranta Dastider
2024-03-25 15:31:39 +01:00
committed by Pranta Ghosh Dastider
parent 3b1e3c56b0
commit 3bbe1c0452
5 changed files with 36 additions and 8 deletions

View File

@@ -12,7 +12,10 @@ Section {
caption: qsTr("Column Layout") caption: qsTr("Column Layout")
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Column spacing") } PropertyLabel {
text: qsTr("Column spacing")
tooltip: qsTr("Sets the space between the items in pixels in the <b>Column Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -30,6 +33,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Layout direction") text: qsTr("Layout direction")
blockedByTemplate: !backendValues.layoutDirection.isAvailable blockedByTemplate: !backendValues.layoutDirection.isAvailable
tooltip: qsTr("Sets the direction of the item flow in the <b>Column Layout</b>.")
} }
SecondColumnLayout { SecondColumnLayout {

View File

@@ -12,7 +12,10 @@ Section {
caption: qsTr("Grid Layout") caption: qsTr("Grid Layout")
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Columns & Rows") } PropertyLabel {
text: qsTr("Columns & Rows")
tooltip: qsTr("Sets the number of columns and rows in the <b>Grid Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -49,7 +52,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Spacing") } PropertyLabel {
text: qsTr("Spacing")
tooltip: qsTr("Sets the space between the items in pixels in the rows and columns in the <b>Grid Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -86,7 +92,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Flow") } PropertyLabel {
text: qsTr("Flow")
tooltip: qsTr("Set the direction of dynamic items to flow in rows or columns in the <b>Grid Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
ComboBox { ComboBox {
@@ -100,7 +109,11 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Layout direction") } PropertyLabel {
text: qsTr("Layout direction")
tooltip: qsTr("Sets the direction of the dynamic items left to right or right to left in the <b>Grid Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
ComboBox { ComboBox {

View File

@@ -12,7 +12,10 @@ Section {
caption: qsTr("Row Layout") caption: qsTr("Row Layout")
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Row spacing") } PropertyLabel {
text: qsTr("Row spacing")
tooltip: qsTr("Sets the space between the items in pixels in the <b>Row Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {
@@ -30,6 +33,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Layout direction") text: qsTr("Layout direction")
blockedByTemplate: !backendValues.layoutDirection.isAvailable blockedByTemplate: !backendValues.layoutDirection.isAvailable
tooltip: qsTr("Sets the direction of the item flow in the <b>Row Layout</b>.")
} }
SecondColumnLayout { SecondColumnLayout {

View File

@@ -12,7 +12,10 @@ Section {
caption: qsTr("Stack Layout") caption: qsTr("Stack Layout")
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Current index") } PropertyLabel {
text: qsTr("Current index")
tooltip: qsTr("Sets the index of the child item currently visible in the <b>Stack Layout</b>.")
}
SecondColumnLayout { SecondColumnLayout {
SpinBox { SpinBox {

View File

@@ -12,6 +12,7 @@ MetaInfo {
Property { name: "width"; type: "int"; value: 100; } Property { name: "width"; type: "int"; value: 100; }
Property { name: "height"; type: "int"; value: 100; } Property { name: "height"; type: "int"; value: 100; }
tooltip: qsTr("Organizes items in a row.")
} }
} }
@@ -28,6 +29,7 @@ MetaInfo {
Property { name: "width"; type: "int"; value: 100; } Property { name: "width"; type: "int"; value: 100; }
Property { name: "height"; type: "int"; value: 100; } Property { name: "height"; type: "int"; value: 100; }
tooltip: qsTr("Organizes items in a column.")
} }
} }
@@ -44,6 +46,7 @@ MetaInfo {
Property { name: "width"; type: "int"; value: 100; } Property { name: "width"; type: "int"; value: 100; }
Property { name: "height"; type: "int"; value: 100; } Property { name: "height"; type: "int"; value: 100; }
tooltip: qsTr("Organizes items in a grid.")
} }
} }
@@ -57,7 +60,7 @@ MetaInfo {
} }
ItemLibraryEntry { ItemLibraryEntry {
name: "StackLayout" name: "Stack Layout"
category: "Qt Quick - Layouts" category: "Qt Quick - Layouts"
libraryIcon: ":/componentsplugin/images/stack-layouts-icon.png" libraryIcon: ":/componentsplugin/images/stack-layouts-icon.png"
version: "1.0" version: "1.0"
@@ -65,6 +68,7 @@ MetaInfo {
Property { name: "width"; type: "int"; value: 100; } Property { name: "width"; type: "int"; value: 100; }
Property { name: "height"; type: "int"; value: 100; } Property { name: "height"; type: "int"; value: 100; }
tooltip: qsTr("Organizes items in a grid. Only the top item is visible.")
} }
} }
} }