From 33e5ff9ecff99a00e7650484e9671c1321543708 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 12 Oct 2016 12:07:13 +0200 Subject: [PATCH] QmlDesigner: Adding support for font spacings Change-Id: I55843cade308cab00f4394a239507447fb84e0da Reviewed-by: Leena Miettinen Reviewed-by: Tim Jenssen --- .../HelperWidgets/FontSection.qml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml index 227bf3ec489..5b718338379 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/FontSection.qml @@ -178,5 +178,41 @@ Section { model: ["Normal", "Outline", "Raised", "Sunken"] scope: "Text" } + + Label { + text: qsTr("Spacing") + } + + SecondColumnLayout { + Label { + text: qsTr("Word") + tooltip: qsTr("Sets the word spacing for the font.") + width: 42 + } + SpinBox { + maximumValue: 9999999 + minimumValue: -9999999 + decimals: 0 + backendValue: backendValues.font_wordSpacing + Layout.fillWidth: true + } + Item { + width: 4 + height: 4 + } + + Label { + text: qsTr("Letter") + tooltip: qsTr("Sets the letter spacing for the font.") + width: 42 + } + SpinBox { + maximumValue: 9999999 + minimumValue: -9999999 + decimals: 0 + backendValue: backendValues.font_letterSpacing + Layout.fillWidth: true + } + } } }