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 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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -37,6 +37,7 @@ Column {
|
|||||||
showVerticalAlignment: true
|
showVerticalAlignment: true
|
||||||
showFormatProperty: true
|
showFormatProperty: true
|
||||||
showElide: true
|
showElide: true
|
||||||
|
showFontSizeMode: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
|
Reference in New Issue
Block a user