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

Make KoSvgText a Q_NAMESPACE so we can access its enums inside qml.

Wolthera van Hövell tot Westerflierae960cd8eb7c
diff --git a/libs/flake/text/KoSvgText.h b/libs/flake/text/KoSvgText.h
index 45d2ef71db..ebe6e7beb0 100644
--- a/libs/flake/text/KoSvgText.h
+++ b/libs/flake/text/KoSvgText.h
@@ -33,6 +33,8 @@ class KoSvgTextChunkShape;
namespace KoSvgText
{
+ Q_NAMESPACE_EXPORT(KRITAFLAKE_EXPORT)
+
enum WritingMode {
HorizontalTB, ///< Left to right, lay out new lines bottom of previous. RTL
///< scripts use this with BIDI reordering.
@@ -41,12 +43,14 @@ enum WritingMode {
VerticalLR ///< Top to bottom, lay out new lines left of the previous. Used
///< for Mongolian.
};
+Q_ENUM_NS(WritingMode)
/// Base direction used by Bidi algorithm.
enum Direction {
DirectionLeftToRight,
DirectionRightToLeft
};
+Q_ENUM_NS(Direction)
/// These values control the type of bidi-controls we'll inject into the final
/// text.
@@ -61,6 +65,7 @@ enum UnicodeBidi {
BidiPlainText ///< Behaves like isolate, except using heuristics defined in
///< P2 and P3 of the unicode bidirectional algorithm.
};
+Q_ENUM_NS(UnicodeBidi)
/// Orientation of the glyphs, used for vertical writing modes.
enum TextOrientation {
@@ -69,6 +74,7 @@ enum TextOrientation {
OrientationUpright, ///< Set all characters upright.
OrientationSideWays ///< Set all characters sideways.
};
+Q_ENUM_NS(TextOrientation)
/// Where the text is anchored for SVG 1.1 text and 'inline-size'.
enum TextAnchor {
@@ -76,6 +82,7 @@ enum TextAnchor {
AnchorMiddle, ///< Anchor to the middle.
AnchorEnd ///< Anchor right for LTR, left for RTL.
};
+Q_ENUM_NS(TextAnchor)
/*
* CSS-Text-3 defines the white space property, and SVG 2 adopts this, except,
@@ -124,6 +131,7 @@ enum WordBreak {
WordBreakKeepAll, ///< Never break inside words.
WordBreakBreakAll, ///< Always break inside words.
};
+Q_ENUM_NS(WordBreak)
/// Line breaking strictness. A number of these values are values to be handed
/// over to the line/word breaking algorithm.
@@ -134,6 +142,7 @@ enum LineBreak {
LineBreakStrict, ///< Use strict method, language specific.
LineBreakAnywhere ///< Break between any typographic clusters.
};
+Q_ENUM_NS(LineBreak)
/// What to do with words that cannot be broken, but still overflow.
enum OverflowWrap {
@@ -164,6 +173,7 @@ enum TextAlign {
AlignMatchParent ///< Inherit, except Start and End are matched against the
///< parent values... We don't support this.
};
+Q_ENUM_NS(TextAlign)
/// Whether and how to transform text. Not strictly necessary according to SVG2.
/// Fullwidth and FullSizeKana are inside the textTransform Struct.
@@ -174,6 +184,7 @@ enum TextTransform {
TextTransformUppercase = 0x2, ///< Convert all bicarmel text to upper-case, locale dependant.
TextTransformLowercase = 0x4, ///< Convert all bicarmel text to lower-case, locale dependant.
};
+Q_ENUM_NS(TextTransform)
/// How to handle overflow.
enum TextOverflow {
@@ -220,6 +231,7 @@ enum Baseline {
BaselineTextBottom, ///< Bottom side of the inline line-box.
BaselineTextTop ///< Top side of the inline line-box.
};
+Q_ENUM_NS(Baseline)
/// Mode of the baseline shift.
enum BaselineShiftMode {
@@ -228,11 +240,13 @@ enum BaselineShiftMode {
ShiftSuper, ///< Use parent font metric for 'superscript'.
ShiftLengthPercentage ///< Css Length Percentage, percentage is em.
};
+Q_ENUM_NS(BaselineShiftMode)
enum LengthAdjust {
LengthAdjustSpacing, ///< Only stretch the spaces.
LengthAdjustSpacingAndGlyphs ///< Stretches the glyphs as well.
};
+Q_ENUM_NS(LengthAdjust)
/// Flags for text-decoration, for underline, overline and strikethrough.
enum TextDecoration {
@@ -250,6 +264,7 @@ enum TextDecorationStyle {
Dashed, ///< Draw a dashed line. Ex: - - - - -
Wavy ///< Draw a wavy line. We currently make a zigzag, ex: ^^^^^
};
+Q_ENUM_NS(TextDecorationStyle)
/// Which location to choose for the underline.
enum TextDecorationUnderlinePosition {
@@ -260,6 +275,7 @@ enum TextDecorationUnderlinePosition {
UnderlineRight ///< Put the underline on the right of the text decoration
///< bounding box, overline left.
};
+Q_ENUM_NS(TextDecorationUnderlinePosition)
/// Whether to stretch the glyphs along a path.
enum TextPathMethod {
@@ -362,6 +378,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(HangingPunctuations)
* percentage should be resolved is defined in the CSS specs in the section a
* given property is specified.
*/
+
struct CssLengthPercentage : public boost::equality_comparable<CssLengthPercentage> {
enum UnitType {
Absolute, ///< Pt, everything needs to be converted to pt for this to work.
diff --git a/plugins/dockers/textproperties/TextPropertiesDock.cpp b/plugins/dockers/textproperties/TextPropertiesDock.cpp
index 651e46c668..e7fe25a4e9 100644
--- a/plugins/dockers/textproperties/TextPropertiesDock.cpp
+++ b/plugins/dockers/textproperties/TextPropertiesDock.cpp
@@ -40,6 +40,7 @@ KIS_DECLARE_STATIC_INITIALIZER {
qmlRegisterType<TextIndentModel>("org.krita.flake.text", 1, 0, "TextIndentModel");
qmlRegisterType<TabSizeModel>("org.krita.flake.text", 1, 0, "TabSizeModel");
qmlRegisterType<TextTransformModel>("org.krita.flake.text", 1, 0, "TextTransformModel");
+ qmlRegisterUncreatableMetaObject(KoSvgText::staticMetaObject, "org.krita.flake.text", 1, 0, "KoSvgText", "Error: Namespace with enums");
}
struct TextPropertiesDock::Private
diff --git a/plugins/dockers/textproperties/qml/AlignmentBaseline.qml b/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
index 62a86aea04..6048c6ce52 100644
--- a/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
+++ b/plugins/dockers/textproperties/qml/AlignmentBaseline.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int baselineSelection;
@@ -38,15 +39,15 @@ TextPropertyBase {
}
ComboBox {
model: [
- {text: i18nc("@label:inlistbox", "Baseline"), value: 0},
- {text: i18nc("@label:inlistbox", "Alphabetic"), value: 6},
- {text: i18nc("@label:inlistbox", "Ideographic"), value: 5},
- {text: i18nc("@label:inlistbox", "Central"), value: 9},
- {text: i18nc("@label:inlistbox", "Hanging"), value: 7},
- {text: i18nc("@label:inlistbox", "Middle"), value: 10},
- {text: i18nc("@label:inlistbox", "Mathematical"), value: 8},
- {text: i18nc("@label:inlistbox", "Text-Top"), value: 11},
- {text: i18nc("@label:inlistbox", "Text-Bottom"), value: 12}
+ {text: i18nc("@label:inlistbox", "Baseline"), value: KoSvgText.BaselineAuto},
+ {text: i18nc("@label:inlistbox", "Alphabetic"), value: KoSvgText.BaselineAlphabetic},
+ {text: i18nc("@label:inlistbox", "Ideographic"), value: KoSvgText.BaselineIdeographic},
+ {text: i18nc("@label:inlistbox", "Central"), value: KoSvgText.BaselineCentral},
+ {text: i18nc("@label:inlistbox", "Hanging"), value: KoSvgText.BaselineHanging},
+ {text: i18nc("@label:inlistbox", "Middle"), value: KoSvgText.BaselineMiddle},
+ {text: i18nc("@label:inlistbox", "Mathematical"), value: KoSvgText.BaselineMathematical},
+ {text: i18nc("@label:inlistbox", "Text-Top"), value: KoSvgText.BaselineTextTop},
+ {text: i18nc("@label:inlistbox", "Text-Bottom"), value: KoSvgText.BaselineTextBottom}
]
Layout.fillWidth: true;
id: baselineCmb;
diff --git a/plugins/dockers/textproperties/qml/BaselineShift.qml b/plugins/dockers/textproperties/qml/BaselineShift.qml
index e7b1f97056..da23e3ab78 100644
--- a/plugins/dockers/textproperties/qml/BaselineShift.qml
+++ b/plugins/dockers/textproperties/qml/BaselineShift.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property alias baselineShiftValue: baselineShiftSpn.value;
@@ -46,10 +47,10 @@ TextPropertyBase {
ComboBox {
Layout.columnSpan: 2;
model: [
- { text: i18nc("@label:inlistbox", "None"), value: 0},
- { text: i18nc("@label:inlistbox", "Length"), value: 3},
- { text: i18nc("@label:inlistbox", "Super"), value: 2},
- { text: i18nc("@label:inlistbox", "Sub"), value: 1}
+ { text: i18nc("@label:inlistbox", "None"), value: KoSvgText.ShiftNone},
+ { text: i18nc("@label:inlistbox", "Length"), value: KoSvgText.ShiftLengthPercentage},
+ { text: i18nc("@label:inlistbox", "Super"), value: KoSvgText.ShiftSuper},
+ { text: i18nc("@label:inlistbox", "Sub"), value: KoSvgText.ShiftSub}
]
id: baselineShiftCmb;
textRole: "text";
diff --git a/plugins/dockers/textproperties/qml/Direction.qml b/plugins/dockers/textproperties/qml/Direction.qml
index 3210a7a13f..ea88338ca9 100644
--- a/plugins/dockers/textproperties/qml/Direction.qml
+++ b/plugins/dockers/textproperties/qml/Direction.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int direction;
@@ -36,8 +37,8 @@ TextPropertyBase {
id: directionCmb
Layout.fillWidth: true;
model: [
- {text: i18nc("@label:inlistbox", "Left to Right"), value: 0},
- {text: i18nc("@label:inlistbox", "Right to Left"), value: 1}
+ {text: i18nc("@label:inlistbox", "Left to Right"), value: KoSvgText.DirectionLeftToRight},
+ {text: i18nc("@label:inlistbox", "Right to Left"), value: KoSvgText.DirectionRightToLeft}
]
textRole: "text";
valueRole: "value";
diff --git a/plugins/dockers/textproperties/qml/DominantBaseline.qml b/plugins/dockers/textproperties/qml/DominantBaseline.qml
index 58e86ed590..32923ea8f8 100644
--- a/plugins/dockers/textproperties/qml/DominantBaseline.qml
+++ b/plugins/dockers/textproperties/qml/DominantBaseline.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int baselineSelection
@@ -38,15 +39,15 @@ TextPropertyBase {
}
ComboBox {
model: [
- {text: i18nc("@label:inlistbox", "Baseline"), value: 0},
- {text: i18nc("@label:inlistbox", "Alphabetic"), value: 6},
- {text: i18nc("@label:inlistbox", "Ideographic"), value: 5},
- {text: i18nc("@label:inlistbox", "Central"), value: 9},
- {text: i18nc("@label:inlistbox", "Hanging"), value: 7},
- {text: i18nc("@label:inlistbox", "Middle"), value: 10},
- {text: i18nc("@label:inlistbox", "Mathematical"), value: 8},
- {text: i18nc("@label:inlistbox", "Text-Top"), value: 11},
- {text: i18nc("@label:inlistbox", "Text-Bottom"), value: 12}
+ {text: i18nc("@label:inlistbox", "Baseline"), value: KoSvgText.BaselineAuto},
+ {text: i18nc("@label:inlistbox", "Alphabetic"), value: KoSvgText.BaselineAlphabetic},
+ {text: i18nc("@label:inlistbox", "Ideographic"), value: KoSvgText.BaselineIdeographic},
+ {text: i18nc("@label:inlistbox", "Central"), value: KoSvgText.BaselineCentral},
+ {text: i18nc("@label:inlistbox", "Hanging"), value: KoSvgText.BaselineHanging},
+ {text: i18nc("@label:inlistbox", "Middle"), value: KoSvgText.BaselineMiddle},
+ {text: i18nc("@label:inlistbox", "Mathematical"), value: KoSvgText.BaselineMathematical},
+ {text: i18nc("@label:inlistbox", "Text-Top"), value: KoSvgText.BaselineTextTop},
+ {text: i18nc("@label:inlistbox", "Text-Bottom"), value: KoSvgText.BaselineTextBottom}
]
Layout.fillWidth: true;
id: baselineCmb;
diff --git a/plugins/dockers/textproperties/qml/LineBreak.qml b/plugins/dockers/textproperties/qml/LineBreak.qml
index c135fd020e..52b0ce6a60 100644
--- a/plugins/dockers/textproperties/qml/LineBreak.qml
+++ b/plugins/dockers/textproperties/qml/LineBreak.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int breakType;
@@ -33,11 +34,11 @@ TextPropertyBase {
ComboBox {
id: lineBreakCmb
model: [
- { text: i18nc("@label:inlistbox", "Auto"), value: 0},
- { text: i18nc("@label:inlistbox", "Loose"), value: 1},
- { text: i18nc("@label:inlistbox", "Normal"), value: 2},
- { text: i18nc("@label:inlistbox", "Strict"), value: 3},
- { text: i18nc("@label:inlistbox", "Anywhere"), value: 4}
+ { 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}
]
Layout.fillWidth: true;
textRole: "text";
diff --git a/plugins/dockers/textproperties/qml/TextAlign.qml b/plugins/dockers/textproperties/qml/TextAlign.qml
index d61bfd29fe..7209382279 100644
--- a/plugins/dockers/textproperties/qml/TextAlign.qml
+++ b/plugins/dockers/textproperties/qml/TextAlign.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
CollapsibleGroupProperty {
propertyName: "Text Align";
@@ -37,12 +38,12 @@ CollapsibleGroupProperty {
ComboBox {
id: textAlignAllCmb;
model: [
- {text: i18nc("@label:inlistbox", "Left"), value: 3},
- {text: i18nc("@label:inlistbox", "Start"), value: 1},
- {text: i18nc("@label:inlistbox", "Center"), value: 5},
- {text: i18nc("@label:inlistbox", "End"), value: 2},
- {text: i18nc("@label:inlistbox", "Right"), value: 4},
- {text: i18nc("@label:inlistbox", "Justified"), value: 6}
+ {text: i18nc("@label:inlistbox", "Left"), value: KoSvgText.AlignLeft},
+ {text: i18nc("@label:inlistbox", "Start"), value: KoSvgText.AlignStart},
+ {text: i18nc("@label:inlistbox", "Center"), value: KoSvgText.AlignCenter},
+ {text: i18nc("@label:inlistbox", "End"), value: KoSvgText.AlignEnd},
+ {text: i18nc("@label:inlistbox", "Right"), value: KoSvgText.AlignRight},
+ {text: i18nc("@label:inlistbox", "Justified"), value: KoSvgText.AlignJustify}
]
Layout.fillWidth: true
textRole: "text";
@@ -64,12 +65,12 @@ CollapsibleGroupProperty {
ComboBox {
id: textAlignLastCmb;
model: [
- {text: i18nc("@label:inlistbox", "Auto"), value: 0},
- {text: i18nc("@label:inlistbox", "Left"), value: 3},
- {text: i18nc("@label:inlistbox", "Start"), value: 1},
- {text: i18nc("@label:inlistbox", "Center"), value: 5},
- {text: i18nc("@label:inlistbox", "End"), value: 2},
- {text: i18nc("@label:inlistbox", "Right"), value: 4}
+ {text: i18nc("@label:inlistbox", "Auto"), value: KoSvgText.AlignLastAuto},
+ {text: i18nc("@label:inlistbox", "Left"), value: KoSvgText.AlignLeft},
+ {text: i18nc("@label:inlistbox", "Start"), value: KoSvgText.AlignStart},
+ {text: i18nc("@label:inlistbox", "Center"), value: KoSvgText.AlignCenter},
+ {text: i18nc("@label:inlistbox", "End"), value: KoSvgText.AlignEnd},
+ {text: i18nc("@label:inlistbox", "Right"), value: KoSvgText.AlignRight}
]
Layout.fillWidth: true
textRole: "text";
@@ -92,9 +93,9 @@ CollapsibleGroupProperty {
ComboBox {
id: textAnchorCmb;
model: [
- {text: i18nc("@label:inlistbox", "Start"), value: 0},
- {text: i18nc("@label:inlistbox", "Middle"), value: 1},
- {text: i18nc("@label:inlistbox", "End"), value: 2}]
+ {text: i18nc("@label:inlistbox", "Start"), value: KoSvgText.AnchorStart},
+ {text: i18nc("@label:inlistbox", "Middle"), value: KoSvgText.AnchorMiddle},
+ {text: i18nc("@label:inlistbox", "End"), value: KoSvgText.AnchorEnd}]
Layout.fillWidth: true
textRole: "text";
valueRole: "value";
diff --git a/plugins/dockers/textproperties/qml/TextDecoration.qml b/plugins/dockers/textproperties/qml/TextDecoration.qml
index 9919dc1337..3113d4eae2 100644
--- a/plugins/dockers/textproperties/qml/TextDecoration.qml
+++ b/plugins/dockers/textproperties/qml/TextDecoration.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
@@ -104,11 +105,11 @@ TextPropertyBase {
ComboBox {
id: lineStyleCmb;
model: [
- { text: i18nc("@label:inlistbox", "Solid"), value: 0},
- { text: i18nc("@label:inlistbox", "Dotted"), value: 2},
- { text: i18nc("@label:inlistbox", "Dashed"), value: 3},
- { text: i18nc("@label:inlistbox", "Double"), value: 1},
- { text: i18nc("@label:inlistbox", "Wavy"), value: 4},
+ { text: i18nc("@label:inlistbox", "Solid"), value: KoSvgText.Solid},
+ { text: i18nc("@label:inlistbox", "Dotted"), value: KoSvgText.Dotted},
+ { text: i18nc("@label:inlistbox", "Dashed"), value: KoSvgText.Dashed},
+ { text: i18nc("@label:inlistbox", "Double"), value: KoSvgText.Double},
+ { text: i18nc("@label:inlistbox", "Wavy"), value: KoSvgText.Wavy},
]
Layout.fillWidth: true;
textRole: "text";
diff --git a/plugins/dockers/textproperties/qml/TextTransform.qml b/plugins/dockers/textproperties/qml/TextTransform.qml
index 7b56089543..01d307de93 100644
--- a/plugins/dockers/textproperties/qml/TextTransform.qml
+++ b/plugins/dockers/textproperties/qml/TextTransform.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property alias fullWidth: fullWidthChk.checked;
@@ -47,10 +48,10 @@ TextPropertyBase {
ComboBox {
id: textTransformCaseCmb;
model: [
- {text: i18nc("@label:inlistbox", "None"), value: 0},
- {text: i18nc("@label:inlistbox", "Capitalize"), value: 1},
- {text: i18nc("@label:inlistbox", "UpperCase"), value: 2},
- {text: i18nc("@label:inlistbox", "Lowercase"), value: 4}
+ {text: i18nc("@label:inlistbox", "None"), value: KoSvgText.TextTransformNone},
+ {text: i18nc("@label:inlistbox", "Capitalize"), value: KoSvgText.TextTransformCapitalize},
+ {text: i18nc("@label:inlistbox", "Upper Case"), value: KoSvgText.TextTransformUppercase},
+ {text: i18nc("@label:inlistbox", "Lower Case"), value: KoSvgText.TextTransformLowercase}
]
Layout.fillWidth: true
textRole: "text";
diff --git a/plugins/dockers/textproperties/qml/WordBreak.qml b/plugins/dockers/textproperties/qml/WordBreak.qml
index 0d3b4f5306..95888c8ef3 100644
--- a/plugins/dockers/textproperties/qml/WordBreak.qml
+++ b/plugins/dockers/textproperties/qml/WordBreak.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int breakType;
@@ -34,9 +35,9 @@ TextPropertyBase {
ComboBox {
id: wordBreakCmb
model: [
- { text: i18nc("@label:inlistbox", "Normal"), value: 0},
- { text: i18nc("@label:inlistbox", "Keep-all"), value: 1},
- { text: i18nc("@label:inlistbox", "Break-all"), value: 2}
+ { 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}
]
Layout.fillWidth: true;
textRole: "text";
diff --git a/plugins/dockers/textproperties/qml/WritingMode.qml b/plugins/dockers/textproperties/qml/WritingMode.qml
index e6e811d631..85a90385d0 100644
--- a/plugins/dockers/textproperties/qml/WritingMode.qml
+++ b/plugins/dockers/textproperties/qml/WritingMode.qml
@@ -6,6 +6,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.12
+import org.krita.flake.text 1.0
TextPropertyBase {
property int writingMode;
@@ -35,9 +36,9 @@ TextPropertyBase {
ComboBox {
id: writingModeCmb
model: [
- {text: i18nc("@label:inlistbox", "Horizontal"), value: 0},
- {text: i18nc("@label:inlistbox", "Vertical, Right to Left"), value: 1},
- {text: i18nc("@label:inlistbox", "Vertical, Left To Right"), value: 2}
+ {text: i18nc("@label:inlistbox", "Horizontal"), value: KoSvgText.HorizontalTB},
+ {text: i18nc("@label:inlistbox", "Vertical, Right to Left"), value: KoSvgText.VerticalRL},
+ {text: i18nc("@label:inlistbox", "Vertical, Left To Right"), value: KoSvgText.VerticalLR}
]
Layout.fillWidth: true;
textRole: "text";