forked from qt-creator/qt-creator
QmlDesigner: Adding support for fontSizeMode
Change-Id: I34d5b4b801951929c8463ac741ee89977a017781 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
92a085d273
commit
5d5c4aa9cc
@@ -37,6 +37,7 @@ Section {
|
||||
property bool showVerticalAlignment: false
|
||||
property bool useLineEdit: true
|
||||
property bool showFormatProperty: false
|
||||
property bool showFontSizeMode: false
|
||||
|
||||
SectionLayout {
|
||||
columns: 2
|
||||
@@ -116,5 +117,16 @@ Section {
|
||||
backendValue: backendValues.renderType
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -37,6 +37,7 @@ Column {
|
||||
showVerticalAlignment: true
|
||||
showFormatProperty: true
|
||||
showElide: true
|
||||
showFontSizeMode: true
|
||||
}
|
||||
|
||||
Section {
|
||||
|
Reference in New Issue
Block a user