Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Rename text property translated label to "propertyTitle" and assign each property a name.

Wolthera van Hövell tot Westerflier07439364ee85
diff --git a/plugins/dockers/textproperties/qml/AlignmentBaseline.qml b/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
index c7fde368b6..2e5aebbee0 100644
--- a/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
+++ b/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:listbox", "Alignment Baseline");
+ propertyTitle: i18nc("@label:listbox", "Alignment Baseline");
+ propertyName: "alignment-baseline";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Alignment Baseline allows controling how this range of text is aligned to the parent text.");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.alignmentBaselineState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/BaselineShift.qml b/plugins/dockers/textproperties/qml/BaselineShift.qml
index 5e9d226eb5..be4740948e 100644
--- a/plugins/dockers/textproperties/qml/BaselineShift.qml
+++ b/plugins/dockers/textproperties/qml/BaselineShift.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Baseline-Shift")
+ propertyTitle: i18nc("@label", "Baseline-Shift");
+ propertyName: "baseline-shift";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Baseline shift allows moving the text away from the baseline, either by predefined super and subscript values, or by a fixed amount.");
@@ -67,7 +68,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
Layout.columnSpan: 2;
diff --git a/plugins/dockers/textproperties/qml/Direction.qml b/plugins/dockers/textproperties/qml/Direction.qml
index 786ad9a061..07fc30ab4d 100644
--- a/plugins/dockers/textproperties/qml/Direction.qml
+++ b/plugins/dockers/textproperties/qml/Direction.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:listbox", "Direction")
+ propertyTitle: i18nc("@label:listbox", "Direction");
+ propertyName: "direction";
propertyType: TextPropertyBase.Mixed;
toolTip: i18nc("@info:tooltip",
"Direction sets whether the text is left-to-right or right-to-left.");
@@ -57,7 +58,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.directionState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/DominantBaseline.qml b/plugins/dockers/textproperties/qml/DominantBaseline.qml
index 8964bc7c81..bce6db6c39 100644
--- a/plugins/dockers/textproperties/qml/DominantBaseline.qml
+++ b/plugins/dockers/textproperties/qml/DominantBaseline.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:listbox", "Dominant Baseline")
+ propertyTitle: i18nc("@label:listbox", "Dominant Baseline");
+ propertyName: "dominant-baseline";
propertyType: TextPropertyBase.Mixed;
toolTip: i18nc("@info:tooltip",
"Dominant Baseline specifies how stretches of text of different sizes are aligned, it is also the default for Alignment Baseline.");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.dominantBaselineState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/FontFamily.qml b/plugins/dockers/textproperties/qml/FontFamily.qml
index 7c5233663a..acb209e758 100644
--- a/plugins/dockers/textproperties/qml/FontFamily.qml
+++ b/plugins/dockers/textproperties/qml/FontFamily.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
CollapsibleGroupProperty {
- propertyName: i18nc("@label", "Font Family");
+ propertyTitle: i18nc("@label", "Font Family");
+ propertyName: "font-family";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Font family allows selecting a list of fonts that should be used for the current text. The first font family is the primary font used, while each font family after that is used for fallback.");
@@ -41,8 +42,8 @@ CollapsibleGroupProperty {
width: parent.width;
height: childrenRect.height;
Label {
- id: propertyTitle;
- text: propertyName;
+ id: propertyTitleLabel;
+ text: propertyTitle;
verticalAlignment: Text.AlignVCenter
color: sysPalette.text;
elide: Text.ElideRight;
diff --git a/plugins/dockers/textproperties/qml/FontKerning.qml b/plugins/dockers/textproperties/qml/FontKerning.qml
index 21abc6e0d5..f0bd41651f 100644
--- a/plugins/dockers/textproperties/qml/FontKerning.qml
+++ b/plugins/dockers/textproperties/qml/FontKerning.qml
@@ -13,7 +13,8 @@ import org.krita.flake.text 1.0
auto-length, but this has been deprecated in SVG 2.0. Because of this, we only really support auto and none.
*/
TextPropertyBase {
- propertyName: i18nc("@label", "Font Kerning");
+ propertyTitle: i18nc("@label", "Font Kerning");
+ propertyName: "font-kerning";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Turn font kerning on or off. Font kerning enables per-glyph spacing adjustments.");
@@ -47,7 +48,7 @@ TextPropertyBase {
CheckBox {
id: fontKerningCbx;
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
}
}
diff --git a/plugins/dockers/textproperties/qml/FontSize.qml b/plugins/dockers/textproperties/qml/FontSize.qml
index 8d36b0db72..0d334c6b9c 100644
--- a/plugins/dockers/textproperties/qml/FontSize.qml
+++ b/plugins/dockers/textproperties/qml/FontSize.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@label:spinbox", "Font Size");
+ propertyTitle: i18nc("@label:spinbox", "Font Size");
+ propertyName: "font-size";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Font size allows setting the size of the characters.");
@@ -51,7 +52,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.fontSizeState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/FontSizeAdjust.qml b/plugins/dockers/textproperties/qml/FontSizeAdjust.qml
index f241a907f2..379f49289f 100644
--- a/plugins/dockers/textproperties/qml/FontSizeAdjust.qml
+++ b/plugins/dockers/textproperties/qml/FontSizeAdjust.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@label:spinbox", "Font Size Adjust");
+ propertyTitle: i18nc("@label:spinbox", "Font Size Adjust");
+ propertyName: "font-size-adjust";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Font size adjust allows setting a ratio that the x-height must be matched by.");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.fontSizeAdjustState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/FontStyle.qml b/plugins/dockers/textproperties/qml/FontStyle.qml
index 10aad5b137..553177a7f7 100644
--- a/plugins/dockers/textproperties/qml/FontStyle.qml
+++ b/plugins/dockers/textproperties/qml/FontStyle.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
CollapsibleGroupProperty {
- propertyName: i18nc("@label", "Font Style");
+ propertyTitle: i18nc("@label", "Font Style");
+ propertyName: "font-sub-style";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Font style allows setting the sub style of the given font family, such as italics and bold");
@@ -100,8 +101,8 @@ CollapsibleGroupProperty {
height: implicitHeight;
spacing: columnSpacing;
Label {
- id: propertyTitle;
- text: propertyName;
+ id: propertyTitleLabel;
+ text: propertyTitle;
verticalAlignment: Text.AlignVCenter
color: sysPalette.text;
elide: Text.ElideRight;
diff --git a/plugins/dockers/textproperties/qml/HangingPunctuation.qml b/plugins/dockers/textproperties/qml/HangingPunctuation.qml
index 4a2258a687..7868988be1 100644
--- a/plugins/dockers/textproperties/qml/HangingPunctuation.qml
+++ b/plugins/dockers/textproperties/qml/HangingPunctuation.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Hanging-punctuation");
+ propertyTitle: i18nc("@label", "Hanging Punctuation");
+ propertyName: "hanging-punctuation";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Hanging punctuation allows hanging opening and closing punctuation as well as commas. This implementation only implements East-Asian style hanging punctuation.");
@@ -60,7 +61,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.hangingPunctuationState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/Language.qml b/plugins/dockers/textproperties/qml/Language.qml
index 767058394b..4fa7fbedfa 100644
--- a/plugins/dockers/textproperties/qml/Language.qml
+++ b/plugins/dockers/textproperties/qml/Language.qml
@@ -10,7 +10,8 @@ import QtQuick.Window 2.15
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Language");
+ propertyTitle: i18nc("@title:group", "Language");
+ propertyName: "locale";
propertyType: TextPropertyBase.Mixed;
toolTip: i18nc("@info:tooltip",
"The language of this text shape. Language affects a number of properties, like glyph shape, upper- and lowercase and line breaking");
@@ -48,7 +49,7 @@ TextPropertyBase {
}
Label {
- text: propertyName + ":";
+ text: propertyTitle + ":";
elide: Text.ElideRight;
Layout.alignment: Qt.AlignRight;
font.italic: properties.lineHeightState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/LetterSpacing.qml b/plugins/dockers/textproperties/qml/LetterSpacing.qml
index 17154bb5d4..e1f57e52f2 100644
--- a/plugins/dockers/textproperties/qml/LetterSpacing.qml
+++ b/plugins/dockers/textproperties/qml/LetterSpacing.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@label:spinbox", "Letter Spacing");
+ propertyTitle: i18nc("@label:spinbox", "Letter Spacing");
+ propertyName: "letter-spacing";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Letter spacing controls the spacing between visible clusters of characters.");
@@ -51,7 +52,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.letterSpacingState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/LineBreak.qml b/plugins/dockers/textproperties/qml/LineBreak.qml
index ba21256989..dc37b0857c 100644
--- a/plugins/dockers/textproperties/qml/LineBreak.qml
+++ b/plugins/dockers/textproperties/qml/LineBreak.qml
@@ -11,7 +11,8 @@ import org.krita.flake.text 1.0
TextPropertyBase {
property int breakType;
- propertyName: i18nc("@label:listbox", "Line Break");
+ propertyTitle: i18nc("@label:listbox", "Line Break");
+ propertyName: "line-break";
toolTip: i18nc("@info:tooltip",
"Line Break allows choosing a strictness for the line breaking algorithm. Mostly used for CJK scripts, requires language being set.");
searchTerms: i18nc("comma separated search terms for the line-break property, matching is case-insensitive",
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.maximumWidth: implicitWidth;
font.italic: properties.lineBreakState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/LineHeight.qml b/plugins/dockers/textproperties/qml/LineHeight.qml
index 92eb2dc9aa..a06a15b9ca 100644
--- a/plugins/dockers/textproperties/qml/LineHeight.qml
+++ b/plugins/dockers/textproperties/qml/LineHeight.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Line Height");
+ propertyTitle: i18nc("@label", "Line Height");
+ propertyName: "line-height";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Line Height controls the line height used for the range of text.");
@@ -90,7 +91,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.lineHeightState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/OTCaps.qml b/plugins/dockers/textproperties/qml/OTCaps.qml
index 5861baa6da..d55919a464 100644
--- a/plugins/dockers/textproperties/qml/OTCaps.qml
+++ b/plugins/dockers/textproperties/qml/OTCaps.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Glyphs: Capitals");
+ propertyTitle: i18nc("@label", "Glyphs: Capitals");
+ propertyName: "ot-capitals";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Enable opentype features related to capitals");
@@ -43,7 +44,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
}
diff --git a/plugins/dockers/textproperties/qml/OTEastAsian.qml b/plugins/dockers/textproperties/qml/OTEastAsian.qml
index b921897c65..0881435052 100644
--- a/plugins/dockers/textproperties/qml/OTEastAsian.qml
+++ b/plugins/dockers/textproperties/qml/OTEastAsian.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Glyphs: East-Asian");
+ propertyTitle: i18nc("@label", "Glyphs: East-Asian");
+ propertyName: "ot-east-asian";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Enable glyph forms related to East Asian text layout.");
@@ -61,7 +62,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
Layout.columnSpan: 2;
}
diff --git a/plugins/dockers/textproperties/qml/OTLigatures.qml b/plugins/dockers/textproperties/qml/OTLigatures.qml
index f32b0abd09..50998ffddd 100644
--- a/plugins/dockers/textproperties/qml/OTLigatures.qml
+++ b/plugins/dockers/textproperties/qml/OTLigatures.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Glyphs: Ligatures");
+ propertyTitle: i18nc("@label", "Glyphs: Ligatures");
+ propertyName: "ot-ligatures";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Enable or disable ligatures and contextual alternates on the text.");
@@ -68,7 +69,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
}
diff --git a/plugins/dockers/textproperties/qml/OTNumeric.qml b/plugins/dockers/textproperties/qml/OTNumeric.qml
index 0f518489f2..fce84ca876 100644
--- a/plugins/dockers/textproperties/qml/OTNumeric.qml
+++ b/plugins/dockers/textproperties/qml/OTNumeric.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Glyphs: Numeric");
+ propertyTitle: i18nc("@label", "Glyphs: Numeric");
+ propertyName: "ot-numeric";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Enable number-related glyph forms on the text.");
@@ -78,7 +79,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
Layout.columnSpan: 2;
}
diff --git a/plugins/dockers/textproperties/qml/OTPosition.qml b/plugins/dockers/textproperties/qml/OTPosition.qml
index b47c10ff65..167b9d55f7 100644
--- a/plugins/dockers/textproperties/qml/OTPosition.qml
+++ b/plugins/dockers/textproperties/qml/OTPosition.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label", "Glyphs: Position");
+ propertyTitle: i18nc("@label", "Glyphs: Position");
+ propertyName: "ot-position";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Enable super or subscripts on the text.");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
}
diff --git a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
index 46f56fa3eb..13bac76a38 100644
--- a/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
+++ b/plugins/dockers/textproperties/qml/OpenTypeFeatureSettings.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
TextPropertyBase {
id: root;
- propertyName: i18nc("@label", "OpenType features");
+ propertyTitle: i18nc("@label", "OpenType Features");
+ propertyName: "ot-features";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Configure Open Type features.");
@@ -47,7 +48,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.fillWidth: true;
}
diff --git a/plugins/dockers/textproperties/qml/TabSize.qml b/plugins/dockers/textproperties/qml/TabSize.qml
index 7751f07f09..6a3aaadfd2 100644
--- a/plugins/dockers/textproperties/qml/TabSize.qml
+++ b/plugins/dockers/textproperties/qml/TabSize.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Tab Size");
+ propertyTitle: i18nc("@title:group", "Tab Size");
+ propertyName: "tab-size";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Tab Size allows defining the size of tabulation characters.");
@@ -78,7 +79,7 @@ TextPropertyBase {
onClicked: properties.tabSizeState = KoSvgTextPropertiesModel.PropertyUnset;
}
Label {
- text: propertyName
+ text: propertyTitle
Layout.columnSpan: 2;
elide: Text.ElideRight;
Layout.fillWidth: true;
diff --git a/plugins/dockers/textproperties/qml/TextAlign.qml b/plugins/dockers/textproperties/qml/TextAlign.qml
index fb47ff6ef7..5ff2be807c 100644
--- a/plugins/dockers/textproperties/qml/TextAlign.qml
+++ b/plugins/dockers/textproperties/qml/TextAlign.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
CollapsibleGroupProperty {
- propertyName: i18nc("@title:group", "Text Align");
+ propertyTitle: i18nc("@title:group", "Text Align");
+ propertyName: "text-align";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Text Align sets the alignment for the given block of characters.");
@@ -147,8 +148,8 @@ CollapsibleGroupProperty {
width: parent.width;
height: childrenRect.height;
Label {
- id: propertyTitle;
- text: propertyName;
+ id: propertyTitleLabel;
+ text: propertyTitle;
verticalAlignment: Text.AlignVCenter
color: sysPalette.text;
elide: Text.ElideRight;
diff --git a/plugins/dockers/textproperties/qml/TextDecoration.qml b/plugins/dockers/textproperties/qml/TextDecoration.qml
index 0ab295ac28..00347cac8e 100644
--- a/plugins/dockers/textproperties/qml/TextDecoration.qml
+++ b/plugins/dockers/textproperties/qml/TextDecoration.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Text Decoration");
+ propertyTitle: i18nc("@title:group", "Text Decoration");
+ propertyName: "text-decoration";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Text Decoration allows drawing underlines, overlines and striking through text.");
@@ -83,7 +84,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.columnSpan: 2;
elide: Text.ElideRight;
Layout.fillWidth: true;
diff --git a/plugins/dockers/textproperties/qml/TextIndent.qml b/plugins/dockers/textproperties/qml/TextIndent.qml
index 0f0e1613f5..0f7f65469c 100644
--- a/plugins/dockers/textproperties/qml/TextIndent.qml
+++ b/plugins/dockers/textproperties/qml/TextIndent.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
CollapsibleGroupProperty {
- propertyName: i18nc("@title:group", "Text Indent");
+ propertyTitle: i18nc("@title:group", "Text Indent");
+ propertyName: "text-indent";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Text Indent allows setting indentation at the line start. Only works when the text is wrapping.");
@@ -65,8 +66,8 @@ CollapsibleGroupProperty {
spacing: columnSpacing;
Label {
- id: propertyTitle;
- text: propertyName;
+ id: propertyTitleLabel;
+ text: propertyTitle;
verticalAlignment: Text.AlignVCenter
color: sysPalette.text;
elide: Text.ElideRight;
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBase.qml b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
index 04cfcbe1d0..36b5fd9bd3 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBase.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
@@ -28,7 +28,8 @@ Column {
signal enableProperty; ///< Set the property to a default value.
property bool blockSignals; ///< When setting the data on the controls, this needs to be enabled and checked while returning data from the controls.
- property string propertyName; ///< Translated name of the property.
+ property string propertyName; ///< name of the property used for config purposes. Needs to be unique!
+ property string propertyTitle; ///< Translated name of the property.
property int propertyType; ///< PropertyType of the current property.
property int parentPropertyType; ///< PropertyType of the current property list it is in.
property string toolTip; ///< Tooltip associated with the property.
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
index aaece2cf59..2cb4b4b06e 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
@@ -26,7 +26,8 @@ ColumnLayout {
propertyWidgetModel.get(i).parentPropertyType = propertyType;
if (propertyWidgetModel.get(i).propertyType === propertyType ||
propertyWidgetModel.get(i).propertyType === TextPropertyBase.Mixed) {
- propertyList.append({"name": propertyWidgetModel.get(i).propertyName,
+ propertyList.append({"title": propertyWidgetModel.get(i).propertyTitle,
+ "name": propertyWidgetModel.get(i).propertyName,
"toolTip": propertyWidgetModel.get(i).toolTip,
"searchTerms": propertyWidgetModel.get(i).searchTerms,
"item": propertyWidgetModel.get(i)});
@@ -162,7 +163,7 @@ ColumnLayout {
Layout.fillWidth: true;
Layout.minimumHeight: implicitHeight;
model: filteredPropertyList;
- textRole: "name";
+ textRole: "title";
displayText: i18nc("@label:listbox", "Add Property");
onActivated: {
model.get(currentIndex).item.enableProperty();
@@ -181,6 +182,7 @@ ColumnLayout {
delegate: ItemDelegate {
id: addPropertyDelegate;
width: addPropertyCmb.width;
+ required property string title;
required property string name;
required property int index;
required property QtObject item;
@@ -193,7 +195,7 @@ ColumnLayout {
}
palette: addPropertyPalette.palette;
color: addPropertyDelegate.highlighted? palette.highlightedText: palette.text;
- text: addPropertyDelegate.name;
+ text: addPropertyDelegate.title;
elide: Text.ElideRight;
verticalAlignment: Text.AlignVCenter
}
diff --git a/plugins/dockers/textproperties/qml/TextRendering.qml b/plugins/dockers/textproperties/qml/TextRendering.qml
index a0f017291d..daff6dc8fc 100644
--- a/plugins/dockers/textproperties/qml/TextRendering.qml
+++ b/plugins/dockers/textproperties/qml/TextRendering.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.15
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Text Rendering");
+ propertyTitle: i18nc("@title:group", "Text Rendering");
+ propertyName: "text-rendering";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Text Rendering controls the hinting and rendering style for the property");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.textRenderingState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/TextTransform.qml b/plugins/dockers/textproperties/qml/TextTransform.qml
index 2bb21b589e..04b4237d47 100644
--- a/plugins/dockers/textproperties/qml/TextTransform.qml
+++ b/plugins/dockers/textproperties/qml/TextTransform.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.15
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Text Transform");
+ propertyTitle: i18nc("@title:group", "Text Transform");
+ propertyName: "text-transform";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Text Transform allows transforming the given range of characters, for example, by setting them uppercase, or switching out half-width forms for full-width forms.");
@@ -60,7 +61,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
Layout.columnSpan: 2;
elide: Text.ElideRight;
Layout.fillWidth: true;
diff --git a/plugins/dockers/textproperties/qml/UnderlinePosition.qml b/plugins/dockers/textproperties/qml/UnderlinePosition.qml
index 0654541d6a..f238ee2b8b 100644
--- a/plugins/dockers/textproperties/qml/UnderlinePosition.qml
+++ b/plugins/dockers/textproperties/qml/UnderlinePosition.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.15
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:spinbox", "Underline Position");
+ propertyTitle: i18nc("@label:spinbox", "Underline Position");
+ propertyName: "decoration-position";
toolTip: i18nc("@info:tooltip",
"Specify the position of the underline for text-decoration.");
searchTerms: i18nc("comma separated search terms for the text-decoration-position property, matching is case-insensitive",
@@ -51,7 +52,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.textDecorationUnderlinePositionState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/WhiteSpace.qml b/plugins/dockers/textproperties/qml/WhiteSpace.qml
index afb9e5b22d..4fc5db4c41 100644
--- a/plugins/dockers/textproperties/qml/WhiteSpace.qml
+++ b/plugins/dockers/textproperties/qml/WhiteSpace.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.15
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:spinbox", "White Space");
+ propertyTitle: i18nc("@label:spinbox", "White Space");
+ propertyName: "css-white-space";
toolTip: i18nc("@info:tooltip",
"The CSS white space rule controls how multiples of spaces are handled, and whether the text can wrap.");
searchTerms: i18nc("comma separated search terms for the white-space property, matching is case-insensitive",
@@ -83,7 +84,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.maximumWidth: implicitWidth;
font.italic: properties.textCollapseState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/WordBreak.qml b/plugins/dockers/textproperties/qml/WordBreak.qml
index e44aed58e7..1b2b323fc7 100644
--- a/plugins/dockers/textproperties/qml/WordBreak.qml
+++ b/plugins/dockers/textproperties/qml/WordBreak.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:listbox", "Word Break");
+ propertyTitle: i18nc("@label:listbox", "Word Break");
+ propertyName: "word-break";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Word Break allows fine-tuning the line breaking by toggling whether to only break at words or also allow breaking at characters. Useful for Korean or Ethiopian.");
@@ -44,7 +45,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.wordBreakState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/WordSpacing.qml b/plugins/dockers/textproperties/qml/WordSpacing.qml
index 7ef3d9d9a2..19856b2e3f 100644
--- a/plugins/dockers/textproperties/qml/WordSpacing.qml
+++ b/plugins/dockers/textproperties/qml/WordSpacing.qml
@@ -10,7 +10,8 @@ import org.krita.flake.text 1.0
import org.krita.components 1.0
TextPropertyBase {
- propertyName: i18nc("@title:group", "Word Spacing");
+ propertyTitle: i18nc("@title:group", "Word Spacing");
+ propertyName: "word-spacing";
propertyType: TextPropertyBase.Character;
toolTip: i18nc("@info:tooltip",
"Word spacing controls the size of word-break characters, such as the space character.");
@@ -51,7 +52,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.wordSpacingState === KoSvgTextPropertiesModel.PropertyTriState;
diff --git a/plugins/dockers/textproperties/qml/WritingMode.qml b/plugins/dockers/textproperties/qml/WritingMode.qml
index 664c61390d..83547dd5e0 100644
--- a/plugins/dockers/textproperties/qml/WritingMode.qml
+++ b/plugins/dockers/textproperties/qml/WritingMode.qml
@@ -9,7 +9,8 @@ import QtQuick.Layouts 1.12
import org.krita.flake.text 1.0
TextPropertyBase {
- propertyName: i18nc("@label:listbox", "Writing Mode");
+ propertyTitle: i18nc("@label:listbox", "Writing Mode");
+ propertyName: "writing-mode";
propertyType: TextPropertyBase.Paragraph;
toolTip: i18nc("@info:tooltip",
"Writing Mode sets whether the text flows horizontally or vertically, and in the latter case, whether the block flows right to left or left to right.");
@@ -43,7 +44,7 @@ TextPropertyBase {
}
Label {
- text: propertyName;
+ text: propertyTitle;
elide: Text.ElideRight;
Layout.fillWidth: true;
font.italic: properties.writingModeState === KoSvgTextPropertiesModel.PropertyTriState;