QmlDesigner: Adding support for fontSizeMode

Change-Id: I34d5b4b801951929c8463ac741ee89977a017781
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2016-10-12 11:41:28 +02:00
committed by Tim Jenssen
parent 92a085d273
commit 5d5c4aa9cc
2 changed files with 13 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ Section {
property bool showVerticalAlignment: false property bool showVerticalAlignment: false
property bool useLineEdit: true property bool useLineEdit: true
property bool showFormatProperty: false property bool showFormatProperty: false
property bool showFontSizeMode: false
SectionLayout { SectionLayout {
columns: 2 columns: 2
@@ -116,5 +117,16 @@ Section {
backendValue: backendValues.renderType backendValue: backendValues.renderType
Layout.fillWidth: true Layout.fillWidth: true
} }
Label {
text: qsTr("Font size mode")
toolTip: qsTr("Specifies how the font size of the displayed text is determined.")
}
ComboBox {
scope: "Text"
model: ["FixedSize", "HorizontalFit", "VerticalFit", "Fit"]
backendValue: backendValues.fontSizeMode
Layout.fillWidth: true
}
} }
} }

View File

@@ -37,6 +37,7 @@ Column {
showVerticalAlignment: true showVerticalAlignment: true
showFormatProperty: true showFormatProperty: true
showElide: true showElide: true
showFontSizeMode: true
} }
Section { Section {