Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Add some tooltips to word and line break.
Wolthera van Hövell tot Westerflier7382598850f3
diff --git a/plugins/dockers/textproperties/qml/LineBreak.qml b/plugins/dockers/textproperties/qml/LineBreak.qmlindex e1127d2da9..ba21256989 100644--- a/plugins/dockers/textproperties/qml/LineBreak.qml+++ b/plugins/dockers/textproperties/qml/LineBreak.qml@@ -46,22 +46,28 @@ TextPropertyBase {Label {text: propertyName;elide: Text.ElideRight;- Layout.fillWidth: true;+ Layout.maximumWidth: implicitWidth;font.italic: properties.lineBreakState === KoSvgTextPropertiesModel.PropertyTriState;}- ComboBox {+ SqueezedComboBox {id: lineBreakCmbmodel: [- { text: i18nc("@label:inlistbox", "Auto"), value: KoSvgText.LineBreakAuto},- { text: i18nc("@label:inlistbox", "Loose"), value: KoSvgText.LineBreakLoose},- { text: i18nc("@label:inlistbox", "Normal"), value: KoSvgText.LineBreakNormal},- { text: i18nc("@label:inlistbox", "Strict"), value: KoSvgText.LineBreakStrict},- { text: i18nc("@label:inlistbox", "Anywhere"), value: KoSvgText.LineBreakAnywhere}+ { text: i18nc("@label:inlistbox", "Auto"), value: KoSvgText.LineBreakAuto,+ toolTip:i18nc("@info:tooltip", "No particular adjustments are made to the line break algorithm")},+ { text: i18nc("@label:inlistbox", "Loose"), value: KoSvgText.LineBreakLoose,+ toolTip:i18nc("@info:tooltip", "While typically defines a looser algorithm, currently same as auto.")},+ { text: i18nc("@label:inlistbox", "Normal"), value: KoSvgText.LineBreakNormal,+ toolTip:i18nc("@info:tooltip", "Same as auto. Soft breaks will be allowed before small kana if text language is Japanese.")},+ { text: i18nc("@label:inlistbox", "Strict"), value: KoSvgText.LineBreakStrict,+ toolTip:i18nc("@info:tooltip", "Soft breaks will not be allowed before small kana.")},+ { text: i18nc("@label:inlistbox", "Anywhere"), value: KoSvgText.LineBreakAnywhere,+ toolTip:i18nc("@info:tooltip", "Soft breaks will occur along any grapheme.")}]Layout.fillWidth: true;textRole: "text";valueRole: "value";+ toolTipRole: "toolTip";onActivated: breakType = currentValue;}}diff --git a/plugins/dockers/textproperties/qml/WhiteSpace.qml b/plugins/dockers/textproperties/qml/WhiteSpace.qmlindex b025dfc29a..6b6a49e119 100644--- a/plugins/dockers/textproperties/qml/WhiteSpace.qml+++ b/plugins/dockers/textproperties/qml/WhiteSpace.qml@@ -83,7 +83,7 @@ TextPropertyBase {Label {text: propertyName;elide: Text.ElideRight;- Layout.fillWidth: true;+ Layout.maximumWidth: implicitWidth;font.italic: properties.textCollapseState === KoSvgTextPropertiesModel.PropertyTriState;}diff --git a/plugins/dockers/textproperties/qml/WordBreak.qml b/plugins/dockers/textproperties/qml/WordBreak.qmlindex 4905797b83..e44aed58e7 100644--- a/plugins/dockers/textproperties/qml/WordBreak.qml+++ b/plugins/dockers/textproperties/qml/WordBreak.qml@@ -51,16 +51,20 @@ TextPropertyBase {}- ComboBox {+ SqueezedComboBox {id: wordBreakCmbmodel: [- { text: i18nc("@label:inlistbox", "Normal"), value: KoSvgText.WordBreakNormal},- { text: i18nc("@label:inlistbox", "Keep-all"), value: KoSvgText.WordBreakKeepAll},- { text: i18nc("@label:inlistbox", "Break-all"), value: KoSvgText.WordBreakBreakAll}+ { text: i18nc("@label:inlistbox", "Normal"), value: KoSvgText.WordBreakNormal,+ toolTip:i18nc("@info:tooltip", "No additional adjustments are made to the regular line break algorithm.")},+ { text: i18nc("@label:inlistbox", "Keep-all"), value: KoSvgText.WordBreakKeepAll,+ toolTip:i18nc("@info:tooltip", "Soft breaks will only be allowed inside words, typically delimited by spaces.")},+ { text: i18nc("@label:inlistbox", "Break-all"), value: KoSvgText.WordBreakBreakAll,+ toolTip:i18nc("@info:tooltip", "Soft breaks will occur along any grapheme.")}]Layout.fillWidth: true;textRole: "text";valueRole: "value";+ toolTipRole: "toolTip";onActivated: breakType = currentValue;wheelEnabled: true;}