QmlDesigner: Update Tooltips for Character Section

This patch update tooltip text for Character Section fields
in Property editor.

Fixes: QDS-8806
Change-Id: I5f03394a79c8ce187309ddbb0f35d99d062f11a1
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-01-20 16:04:44 +01:00
committed by Pranta Ghosh Dastider
parent 3f4f6fa611
commit cc76b36c64
2 changed files with 43 additions and 17 deletions

View File

@@ -38,7 +38,10 @@ Section {
onPixelSizeChanged: sizeWidget.setPointPixelSize() onPixelSizeChanged: sizeWidget.setPointPixelSize()
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Text") } PropertyLabel {
text: qsTr("Text")
tooltip: qsTr("Sets the text to display.")
}
SecondColumnLayout { SecondColumnLayout {
LineEdit { LineEdit {
@@ -103,7 +106,10 @@ Section {
} }
} }
PropertyLabel { text: qsTr("Font") } PropertyLabel {
text: qsTr("Font")
tooltip: qsTr("Sets the font of the text.")
}
SecondColumnLayout { SecondColumnLayout {
FontComboBox { FontComboBox {
@@ -120,7 +126,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Style name") text: qsTr("Style name")
tooltip: qsTr("Font's style.") tooltip: qsTr("Sets the style of the selected font. This is prioritized over <b>Weight</b> and <b>Emphasis</b>.")
enabled: styleNameComboBox.model.length enabled: styleNameComboBox.model.length
blockedByTemplate: !styleNameComboBox.backendValue.isAvailable blockedByTemplate: !styleNameComboBox.backendValue.isAvailable
} }
@@ -141,7 +147,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Size") } PropertyLabel {
text: qsTr("Size")
tooltip: qsTr("Sets the font size in pixels or points.")
}
SecondColumnLayout { SecondColumnLayout {
id: sizeWidget id: sizeWidget
@@ -220,7 +229,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Text color") } PropertyLabel {
text: qsTr("Text color")
tooltip: qsTr("Sets the text color.")
}
ColorEditor { ColorEditor {
backendValue: backendValues.color backendValue: backendValues.color
@@ -229,7 +241,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Weight") text: qsTr("Weight")
tooltip: qsTr("Font's weight.") tooltip: qsTr("Sets the overall thickness of the font.")
enabled: !styleNameComboBox.styleSet enabled: !styleNameComboBox.styleSet
} }
@@ -249,6 +261,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Emphasis") text: qsTr("Emphasis")
tooltip: qsTr("Sets the text to bold, italic, underlined, or strikethrough.")
enabled: !styleNameComboBox.styleSet enabled: !styleNameComboBox.styleSet
} }
@@ -260,7 +273,10 @@ Section {
enabled: !styleNameComboBox.styleSet enabled: !styleNameComboBox.styleSet
} }
PropertyLabel { text: qsTr("Alignment H") } PropertyLabel {
text: qsTr("Alignment H")
tooltip: qsTr("Sets the horizontal alignment position.")
}
SecondColumnLayout { SecondColumnLayout {
AlignmentHorizontalButtons {} AlignmentHorizontalButtons {}
@@ -268,7 +284,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Alignment V") } PropertyLabel {
text: qsTr("Alignment V")
tooltip: qsTr("Sets the vertical alignment position.")
}
SecondColumnLayout { SecondColumnLayout {
AlignmentVerticalButtons { visible: root.showVerticalAlignment } AlignmentVerticalButtons { visible: root.showVerticalAlignment }
@@ -278,7 +297,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Letter spacing") text: qsTr("Letter spacing")
tooltip: qsTr("Letter spacing for the font.") tooltip: qsTr("Sets the letter spacing for the text.")
blockedByTemplate: !root.getBackendValue("letterSpacing").isAvailable blockedByTemplate: !root.getBackendValue("letterSpacing").isAvailable
} }
@@ -299,7 +318,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Word spacing") text: qsTr("Word spacing")
tooltip: qsTr("Word spacing for the font.") tooltip: qsTr("Sets the word spacing for the text.")
blockedByTemplate: !root.getBackendValue("wordSpacing").isAvailable blockedByTemplate: !root.getBackendValue("wordSpacing").isAvailable
} }
@@ -321,7 +340,7 @@ Section {
PropertyLabel { PropertyLabel {
visible: root.showLineHeight visible: root.showLineHeight
text: qsTr("Line height") text: qsTr("Line height")
tooltip: qsTr("Line height for the text.") tooltip: qsTr("Sets the line height for the text.")
blockedByTemplate: !lineHeightSpinBox.enabled blockedByTemplate: !lineHeightSpinBox.enabled
} }

View File

@@ -34,7 +34,10 @@ Section {
onPixelSizeChanged: sizeWidget.setPointPixelSize() onPixelSizeChanged: sizeWidget.setPointPixelSize()
SectionLayout { SectionLayout {
PropertyLabel { text: qsTr("Font") } PropertyLabel {
text: qsTr("Font")
tooltip: qsTr("Sets the font of the text.")
}
SecondColumnLayout { SecondColumnLayout {
FontComboBox { FontComboBox {
@@ -49,7 +52,10 @@ Section {
ExpandingSpacer {} ExpandingSpacer {}
} }
PropertyLabel { text: qsTr("Size") } PropertyLabel {
text: qsTr("Size")
tooltip: qsTr("Sets the font size in pixels or points.")
}
SecondColumnLayout { SecondColumnLayout {
id: sizeWidget id: sizeWidget
@@ -129,6 +135,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Emphasis") text: qsTr("Emphasis")
tooltip: qsTr("Sets the text to bold, italic, underlined, or strikethrough.")
blockedByTemplate: !fontSection.boldStyle.isAvailable blockedByTemplate: !fontSection.boldStyle.isAvailable
&& !fontSection.italicStyle.isAvailable && !fontSection.italicStyle.isAvailable
&& !fontSection.underlineStyle.isAvailable && !fontSection.underlineStyle.isAvailable
@@ -165,7 +172,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Weight") text: qsTr("Weight")
tooltip: qsTr("Font's weight.") tooltip: qsTr("Sets the overall thickness of the font.")
blockedByTemplate: styleNameComboBox.styleSet blockedByTemplate: styleNameComboBox.styleSet
} }
@@ -185,7 +192,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Style name") text: qsTr("Style name")
tooltip: qsTr("Font's style.") tooltip: qsTr("Sets the style of the selected font. This is prioritized over <b>Weight</b> and <b>Emphasis</b>.")
blockedByTemplate: !styleNameComboBox.enabled blockedByTemplate: !styleNameComboBox.enabled
} }
@@ -263,7 +270,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Letter spacing") text: qsTr("Letter spacing")
tooltip: qsTr("Letter spacing for the font.") tooltip: qsTr("Sets the letter spacing for the text.")
blockedByTemplate: !getBackendValue("letterSpacing").isAvailable blockedByTemplate: !getBackendValue("letterSpacing").isAvailable
} }
@@ -284,7 +291,7 @@ Section {
PropertyLabel { PropertyLabel {
text: qsTr("Word spacing") text: qsTr("Word spacing")
tooltip: qsTr("Word spacing for the font.") tooltip: qsTr("Sets the word spacing for the text.")
blockedByTemplate: !getBackendValue("wordSpacing").isAvailable blockedByTemplate: !getBackendValue("wordSpacing").isAvailable
} }