forked from qt-creator/qt-creator
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:
committed by
Pranta Ghosh Dastider
parent
3f4f6fa611
commit
cc76b36c64
@@ -38,7 +38,10 @@ Section {
|
||||
onPixelSizeChanged: sizeWidget.setPointPixelSize()
|
||||
|
||||
SectionLayout {
|
||||
PropertyLabel { text: qsTr("Text") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Text")
|
||||
tooltip: qsTr("Sets the text to display.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
LineEdit {
|
||||
@@ -103,7 +106,10 @@ Section {
|
||||
}
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Font") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Font")
|
||||
tooltip: qsTr("Sets the font of the text.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
FontComboBox {
|
||||
@@ -120,7 +126,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
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
|
||||
blockedByTemplate: !styleNameComboBox.backendValue.isAvailable
|
||||
}
|
||||
@@ -141,7 +147,10 @@ Section {
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Size") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Size")
|
||||
tooltip: qsTr("Sets the font size in pixels or points.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
id: sizeWidget
|
||||
@@ -220,7 +229,10 @@ Section {
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Text color") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Text color")
|
||||
tooltip: qsTr("Sets the text color.")
|
||||
}
|
||||
|
||||
ColorEditor {
|
||||
backendValue: backendValues.color
|
||||
@@ -229,7 +241,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Weight")
|
||||
tooltip: qsTr("Font's weight.")
|
||||
tooltip: qsTr("Sets the overall thickness of the font.")
|
||||
enabled: !styleNameComboBox.styleSet
|
||||
}
|
||||
|
||||
@@ -249,6 +261,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Emphasis")
|
||||
tooltip: qsTr("Sets the text to bold, italic, underlined, or strikethrough.")
|
||||
enabled: !styleNameComboBox.styleSet
|
||||
}
|
||||
|
||||
@@ -260,7 +273,10 @@ Section {
|
||||
enabled: !styleNameComboBox.styleSet
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Alignment H") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Alignment H")
|
||||
tooltip: qsTr("Sets the horizontal alignment position.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
AlignmentHorizontalButtons {}
|
||||
@@ -268,7 +284,10 @@ Section {
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Alignment V") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Alignment V")
|
||||
tooltip: qsTr("Sets the vertical alignment position.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
AlignmentVerticalButtons { visible: root.showVerticalAlignment }
|
||||
@@ -278,7 +297,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -299,7 +318,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -321,7 +340,7 @@ Section {
|
||||
PropertyLabel {
|
||||
visible: root.showLineHeight
|
||||
text: qsTr("Line height")
|
||||
tooltip: qsTr("Line height for the text.")
|
||||
tooltip: qsTr("Sets the line height for the text.")
|
||||
blockedByTemplate: !lineHeightSpinBox.enabled
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,10 @@ Section {
|
||||
onPixelSizeChanged: sizeWidget.setPointPixelSize()
|
||||
|
||||
SectionLayout {
|
||||
PropertyLabel { text: qsTr("Font") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Font")
|
||||
tooltip: qsTr("Sets the font of the text.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
FontComboBox {
|
||||
@@ -49,7 +52,10 @@ Section {
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
PropertyLabel { text: qsTr("Size") }
|
||||
PropertyLabel {
|
||||
text: qsTr("Size")
|
||||
tooltip: qsTr("Sets the font size in pixels or points.")
|
||||
}
|
||||
|
||||
SecondColumnLayout {
|
||||
id: sizeWidget
|
||||
@@ -129,6 +135,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Emphasis")
|
||||
tooltip: qsTr("Sets the text to bold, italic, underlined, or strikethrough.")
|
||||
blockedByTemplate: !fontSection.boldStyle.isAvailable
|
||||
&& !fontSection.italicStyle.isAvailable
|
||||
&& !fontSection.underlineStyle.isAvailable
|
||||
@@ -165,7 +172,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Weight")
|
||||
tooltip: qsTr("Font's weight.")
|
||||
tooltip: qsTr("Sets the overall thickness of the font.")
|
||||
blockedByTemplate: styleNameComboBox.styleSet
|
||||
}
|
||||
|
||||
@@ -185,7 +192,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -263,7 +270,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Letter spacing")
|
||||
tooltip: qsTr("Letter spacing for the font.")
|
||||
tooltip: qsTr("Sets the letter spacing for the text.")
|
||||
blockedByTemplate: !getBackendValue("letterSpacing").isAvailable
|
||||
}
|
||||
|
||||
@@ -284,7 +291,7 @@ Section {
|
||||
|
||||
PropertyLabel {
|
||||
text: qsTr("Word spacing")
|
||||
tooltip: qsTr("Word spacing for the font.")
|
||||
tooltip: qsTr("Sets the word spacing for the text.")
|
||||
blockedByTemplate: !getBackendValue("wordSpacing").isAvailable
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user