summaryrefslogtreecommitdiff
path: root/src/dialogs/DefaultFontDialog.qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-05-12 12:46:32 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-05-12 16:30:31 +0000
commit1f0daa7a6c8b29fa148dadaf92be260567f79630 (patch)
treed68529ee3ec6d641346a57530779d8278efae09c /src/dialogs/DefaultFontDialog.qml
parentd63da9df3ca50c3c234b2622aa1d892d9ca27676 (diff)
downloadqtquickcontrols-1f0daa7a6c8b29fa148dadaf92be260567f79630.tar.gz
FontDialog: support more font.weight enum values
Followup to 0f61aa5efe1c12337f3ab753c08e70d6eaf6c2ab in qtdeclarative: make all possible font weights available in FontDialog. Task-number: QTBUG-46044 Change-Id: I91063c6aa3984ddc3d36f147fd2c3764fd2824d4 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/dialogs/DefaultFontDialog.qml')
-rw-r--r--src/dialogs/DefaultFontDialog.qml29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/dialogs/DefaultFontDialog.qml b/src/dialogs/DefaultFontDialog.qml
index e4f73fff..b96c0f90 100644
--- a/src/dialogs/DefaultFontDialog.qml
+++ b/src/dialogs/DefaultFontDialog.qml
@@ -199,26 +199,15 @@ AbstractFontDialog {
TableViewColumn { id: weightColumn; role: "name"; title: qsTr("Weight") }
model: ListModel {
id: weightModel
- ListElement {
- name: "Light"
- weight: Font.Light
- }
- ListElement {
- name: "Normal"
- weight: Font.Normal
- }
- ListElement {
- name: "DemiBold"
- weight: Font.DemiBold
- }
- ListElement {
- name: "Bold"
- weight: Font.Bold
- }
- ListElement {
- name: "Black"
- weight: Font.Black
- }
+ ListElement { name: "Thin"; weight: Font.Thin }
+ ListElement { name: "ExtraLight"; weight: Font.ExtraLight }
+ ListElement { name: "Light"; weight: Font.Light }
+ ListElement { name: "Normal"; weight: Font.Normal }
+ ListElement { name: "Medium"; weight: Font.Medium }
+ ListElement { name: "DemiBold"; weight: Font.DemiBold }
+ ListElement { name: "Bold"; weight: Font.Bold }
+ ListElement { name: "ExtraBold"; weight: Font.ExtraBold }
+ ListElement { name: "Black"; weight: Font.Black }
Component.onCompleted: weightListView.reset()
function findIndex() {
var currentRow = 1